1
0
Fork 0

status.sh: drop keyboard layout block

main
urosm 2024-09-21 18:07:58 +02:00
parent db21e773a1
commit 34bfc3c161
1 changed files with 1 additions and 6 deletions

View File

@ -20,11 +20,6 @@ while :; do
} else {
"full_text":"(0)",
} end, ","'
# keyboard layout
swaymsg -t get_inputs | jq -Mcj '[.[] | select(.type=="keyboard")][0] | {
"full_text":.xkb_active_layout_name,
"urgent":.xkb_active_layout_index,
}, ","'
# battery
# shellcheck disable=SC2002
cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '
@ -44,6 +39,6 @@ while :; do
}, ","'
printf "],"
# timeout
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null
timeout 1 swaymsg -qt subscribe '["binding"]' >/dev/null
sleep 0.1
done