Update team_tomodachi/readme.md

Added webp file into it so that it's clear what the script does.
This commit is contained in:
soku 2025-05-08 07:47:12 +00:00
parent 2cc5888657
commit 3cef6ce5f6

View File

@ -2,12 +2,15 @@
What is this for? It adds a little animated cheering ascii
![image](https://gitea.nekonetwork.io/soku/Polybar/src/commit/a49d0cfbec002d01ca84f87030e0e89985e985cd/team_tomodachi/team_tomodachi_animation.webp)
![image](./team_tomodachi_animation.webp)
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.
```ini
[module/team_tomodachi]
; On each interval (100ms = 0.1) it will reload the script, increment and echo