diff options
Diffstat (limited to 'dotfiles/.local/bin/swaykbd')
-rwxr-xr-x | dotfiles/.local/bin/swaykbd | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/swaykbd b/dotfiles/.local/bin/swaykbd index d90f78c..2ec42c3 100755 --- a/dotfiles/.local/bin/swaykbd +++ b/dotfiles/.local/bin/swaykbd @@ -3,7 +3,7 @@ swaymsg -r -t get_inputs | \ grep "xkb_active_layout_name" | \ awk -F '"' '{print $4}' | \ - sed 's/English (US)/🇺🇸 English/g;s/Spanish/🇲🇽 Español/g;s/Russian/🇷🇺 Русский/g' | head -1 + sed --unbuffered 's/English (US)/🇺🇸 EN/g;s/Spanish/🇲🇽 ES/g;s/Russian/🇷🇺 RU/g'| head -1 swaymsg \ --type subscribe \ @@ -14,8 +14,6 @@ swaymsg \ --raw-output \ --unbuffered \ ' select(.change == "xkb_layout") | - .input.xkb_active_layout_name | - sub(" \\(US\\)"; "") - ' | \ - sed --unbuffered 's/English/🇺🇸 English/g;s/Spanish/🇲🇽 Español/g;s/Russian/🇷🇺 Русский/g' + .input.xkb_active_layout_name' | \ + sed --unbuffered 's/English (US)/🇺🇸 EN/g;s/Spanish/🇲🇽 ES/g;s/Russian/🇷🇺 RU/g' |