added scroll up to increase/scroll down to decrease for waybar fan module

This commit is contained in:
Joel Mathew Thomas
2024-04-11 02:08:51 +05:30
parent d381bd4bb8
commit a1d173baf7
4 changed files with 49 additions and 10 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ if [ -f ~/.local/bin/fanctl ]; then
source ~/.local/bin/stats/fanstat
# Output the values in JSON format using printf
printf '{"text": "%s", "tooltip": "%s", "class": "%s"}\n' "$text" "$tooltip" "$class"
printf '{"text": "%s", "tooltip": "%s", "class": "%s"}\n' "$textstat" "$tooltipstat" "$classstat"
else
echo "{\"error\": \"File not found\"}"
fi