diff options
Diffstat (limited to 'dotfiles/.local/bin/swaykbd')
-rwxr-xr-x | dotfiles/.local/bin/swaykbd | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/swaykbd b/dotfiles/.local/bin/swaykbd index b0fc34a..d90f78c 100755 --- a/dotfiles/.local/bin/swaykbd +++ b/dotfiles/.local/bin/swaykbd @@ -1,6 +1,9 @@ #!/bin/sh -swaymsg -r -t get_inputs | grep "xkb_active_layout_name" | awk -F '"' '{print $4}' | sed 's/ (US)//g' +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 swaymsg \ --type subscribe \ @@ -13,8 +16,6 @@ swaymsg \ 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' -case $BLOCK_BUTTON in - 1) echo "TO-DO" ;; -esac; |