From 3cef6ce5f60267c912a241d3b9a06eea1b1bf0d9 Mon Sep 17 00:00:00 2001 From: soku Date: Thu, 8 May 2025 07:47:12 +0000 Subject: [PATCH] Update team_tomodachi/readme.md Added webp file into it so that it's clear what the script does. --- team_tomodachi/readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/team_tomodachi/readme.md b/team_tomodachi/readme.md index 4b5f74c..fa76287 100644 --- a/team_tomodachi/readme.md +++ b/team_tomodachi/readme.md @@ -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