diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-04-03 01:35:31 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-04-03 01:35:31 +0300 |
commit | afb5f74cccf20d38a7170349e173d658178b51ad (patch) | |
tree | 7a38da354e20583ddd30e0bcff802748fc95550d /dotfiles | |
parent | a902076085c48665e62197c3f4465906ccf09f4d (diff) | |
download | swayrice-afb5f74cccf20d38a7170349e173d658178b51ad.tar.gz swayrice-afb5f74cccf20d38a7170349e173d658178b51ad.zip |
improved keyboard layout bar script
Diffstat (limited to 'dotfiles')
-rw-r--r-- | dotfiles/.config/waybar/config | 2 | ||||
-rwxr-xr-x | dotfiles/.local/bin/swaykbd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config index 5debd2e..8596154 100644 --- a/dotfiles/.config/waybar/config +++ b/dotfiles/.config/waybar/config @@ -180,7 +180,7 @@ "exec": "barweather" }, "custom/swaykbd": { - "format": "<span color=\"#5b8277\"></span> {}", + "format": "<span color=\"#5b8277\">⌨</span> {}", "exec": "swaykbd", "tooltip": false }, 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 \ |