REVERT update fanstat | cause waybar module to not work

This commit is contained in:
Joel Mathew Thomas
2024-05-21 00:40:31 +05:30
parent 05fc19d0ce
commit 5924799f69
+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 'Speed: %s\n' "$textstat"
printf '{"text": "%s", "tooltip": "%s", "class": "%s"}\n' "$textstat" "$tooltipstat" "$classstat"
else
echo "{\"error\": \"File not found\"}"
fi