aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-03 01:35:31 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-03 01:35:31 +0300
commitafb5f74cccf20d38a7170349e173d658178b51ad (patch)
tree7a38da354e20583ddd30e0bcff802748fc95550d /dotfiles/.local/bin
parenta902076085c48665e62197c3f4465906ccf09f4d (diff)
downloadswayrice-afb5f74cccf20d38a7170349e173d658178b51ad.tar.gz
swayrice-afb5f74cccf20d38a7170349e173d658178b51ad.zip
improved keyboard layout bar script
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-xdotfiles/.local/bin/swaykbd2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/swaykbd b/dotfiles/.local/bin/swaykbd
index a76f833..b0fc34a 100755
--- a/dotfiles/.local/bin/swaykbd
+++ b/dotfiles/.local/bin/swaykbd
@@ -1,6 +1,6 @@
#!/bin/sh
-swaymsg -r -t get_inputs | awk '/1:1:AT_Translated_Set_2_keyboard/;/xkb_active_layout_name/' | grep -A1 '\b1:1:AT_Translated_Set_2_keyboard\b' | grep "xkb_active_layout_name" | awk -F '"' '{print $4}'
+swaymsg -r -t get_inputs | grep "xkb_active_layout_name" | awk -F '"' '{print $4}' | sed 's/ (US)//g'
swaymsg \
--type subscribe \