diff --git a/.local/bin/fanstat b/.local/bin/fanstat index 1043e68..c04102b 100755 --- a/.local/bin/fanstat +++ b/.local/bin/fanstat @@ -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