diff options
-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 \ |