From 34bfc3c16139d8af91415199ab74a8dcb1608fde Mon Sep 17 00:00:00 2001 From: urosm Date: Sat, 21 Sep 2024 18:07:58 +0200 Subject: [PATCH] status.sh: drop keyboard layout block --- .local/bin/status.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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