Fix waybar keyboard layout display

This commit is contained in:
Erwin Boskma 2022-07-25 08:32:11 +02:00
parent e17451946f
commit 64566ab5f3
Signed by: erwin
GPG key ID: 270B20D17394F7E5

View file

@ -72,7 +72,7 @@ in
};
"custom/keyboard-layout" = {
exec = "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4";
exec = ''${pkgs.sway}/bin/swaymsg -t get_inputs | ${pkgs.jq}/bin/jq -r '.[] | select(.identifier == "36125:40349:splitkb_Kyria_rev1") | .xkb_active_layout_name' '';
interval = 30;
format = " {}"; # Icon: keyboard
# Signal sent by Sway key binding (~/.config/sway/key-bindings)