1
0
Fork 0

.local/bin/status.sh: formatting

main
urosm 2024-07-13 21:59:53 +02:00
parent aad9b6d99e
commit 48086ee69a
1 changed files with 5 additions and 5 deletions

View File

@ -21,11 +21,11 @@ while :; do
# shellcheck disable=SC2002
cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '
if .<20 then {
"full_text":([.," %"]|join("")),
"urgent":true,
} else {
"full_text":([.," %"]|join("")),
} end, ","'
"full_text":([.," %"]|join("")),
"urgent":true,
} else {
"full_text":([.," %"]|join("")),
} end, ","'
# date
date +%c | jq -RMcj '{ "full_text":., }, ","'
# scratchpad