ever wanted to add cool transitions to your terminals? no? well let me present to you the solution to a tribulation you didnt even know you were in
- cubic bezier easing
- reactive to terminal size
- loop/reverse transitions
- set duration for transition
- transitions
- more transitions
- actual cli
the entire thing is just one file so you can curl/wget it and add to path
using curl:
sudo curl -L https://raw.githubusercontent.com/flickowoa/sttt/main/sttt -o /usr/local/bin/sttt
sudo chmod a+rx /usr/local/bin/sttt
or with wget:
sudo wget https://raw.githubusercontent.com/flickowoa/sttt/main/sttt -o /usr/local/bin/sttt
sudo chmod a+rx /usr/local/bin/sttt
-
ScanLine
scanline with vertical set to
true
,reverse set totrue
,width
as2
,scale_width
as1.1
, andscale_ratio
as0.5
meaning the width is gonna scale by1.1
with the maximum width at0.5
-
Grow
-
Shrink
shrink with center position set to
[0.9,0.5]
meaning its at 90% width and 50% height -
GrowExit
growexit with center of first circle set as
[0.3,0.3]
and[0.7,0.7]
for the second circle -
ShrinkExit
shrinkexit with
second_start
set to0.9
meaning 90% of duration is used for first circle and the rest 10% for the second circle
this was supposed to be a tiny little script that does only one linear transition for a rice im working on which ended up taking more of my time than i intended, the idea was partly inspired by unimatrix(the -w
flag to be precise, which suggests you to put it in .bashrc to run when terminal launches)
SWWW?
if the name isnt clear enough( "swww" and "sttt" ) most of the inspiration comes from swww, the way transitions are made is also pretty similar to how swww does it, if somehow you havent heard of swww before, do go check it out, its a wayland wallpaper daemon with fancy transitions
- to bezier-easing which i directly translated to python because apparently there are no good cubic bezier easing libs i could find for python