diff --git a/.local/bin/status.sh b/.local/bin/status.sh index 2638056..9c30e81 100755 --- a/.local/bin/status.sh +++ b/.local/bin/status.sh @@ -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