Polybar/team_tomodachi
soku 6e3dacb8fb Delete team_tomodachi/team_tomodachi_animation.webm
removing unnecessary bloat (webm animated file for team_tomodachi showcasing what it does, the webp is lighter weight and better)
2025-05-08 07:47:50 +00:00
..
2025-05-08 07:47:12 +00:00

Team Tomodachi Module!

What is this for? It adds a little animated cheering ascii

image

This script creates a temporary file in /tmp/ to manage a variable in order to increment and loop the ASCII for animation since Polybar doesn't have an easy way to loop. At the interval duration, in this case 0.1 or 0.2, it will read the script from the top to the bottom and so if you define a variable inside the script itself, it will redefine the variable and ruin any increment you were hoping to use. This way, you can use a loop and increment/decrement to your hearts desire!

config module information

This should be obvious, but incase its not (don't feel bad)... You need to put the .sh file into $HOME/.config/polybar/polybar-scripts/ in order for this to run with the exec location being there.

[module/team_tomodachi]
; On each interval (100ms = 0.1) it will reload the script, increment and echo
type = custom/script
exec = $HOME/.config/polybar/polybar-scripts/team_tomodachi_ascii.sh
interval = 0.2