Skip to content

flickowoa/sttt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

A Solution to your Terminal Transition Tribulation

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

Features + Roadmap

  • cubic bezier easing
  • reactive to terminal size
  • loop/reverse transitions
  • set duration for transition
  • transitions
  • more transitions
  • actual cli

Installing

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

Transitions

  • ScanLine

    scanline with vertical set to true,reverse set to true, width as 2, scale_width as 1.1, and scale_ratio as 0.5 meaning the width is gonna scale by 1.1 with the maximum width at 0.5 scanline

  • Grow

    grow

  • Shrink

    shrink with center position set to [0.9,0.5] meaning its at 90% width and 50% height shrink

  • GrowExit

    growexit with center of first circle set as [0.3,0.3] and [0.7,0.7] for the second circle growexit

  • ShrinkExit

    shrinkexit with second_start set to 0.9 meaning 90% of duration is used for first circle and the rest 10% for the second circle shrinkexit

its also reactive to terminal size changes!

GrowExit transition with loop and reverse enabled resize

Why?

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)

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

Thanks!

  • to bezier-easing which i directly translated to python because apparently there are no good cubic bezier easing libs i could find for python

About

A solution to your terminal terminal transition tribulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages