fix: clean up cpugov scripts and waybar polling

Replace infinite loop with single execution (waybar handles polling
via interval), fix unquoted variables, simplify jq invocation.
This commit is contained in:
2026-03-28 14:31:00 +01:00
parent f5d94e8bc0
commit ef78e32394
3 changed files with 37 additions and 46 deletions
+2 -4
View File
@@ -49,19 +49,17 @@ value="$(start)"
# Split input.
# grab upto first space.
choice=${value%%\ *}
# graph remainder, minus space.
input=${value:$((${#choice}+1))}
##
# Cancelled? bail out
##
if test -z ${choice}
if test -z "${choice}"
then
exit
fi
# check if choice exists
if test ${COMMANDS[$choice]+isset}
if test "${COMMANDS[$choice]+isset}"
then
# Execute the choice
${COMMANDS[$choice]}