status.sh: drop keyboard layout block
parent
db21e773a1
commit
34bfc3c161
|
@ -20,11 +20,6 @@ while :; do
|
||||||
} else {
|
} else {
|
||||||
"full_text":"(0)",
|
"full_text":"(0)",
|
||||||
} end, ","'
|
} 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
|
# battery
|
||||||
# shellcheck disable=SC2002
|
# shellcheck disable=SC2002
|
||||||
cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '
|
cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '
|
||||||
|
@ -44,6 +39,6 @@ while :; do
|
||||||
}, ","'
|
}, ","'
|
||||||
printf "],"
|
printf "],"
|
||||||
# timeout
|
# timeout
|
||||||
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null
|
timeout 1 swaymsg -qt subscribe '["binding"]' >/dev/null
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue