status.sh: drop keyboard layout block
parent
db21e773a1
commit
34bfc3c161
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue