dotfiles/.config/waybar/scripts/setkeyboard.sh

5 lines
307 B
Bash
Raw Normal View History

2025-01-12 18:41:54 +00:00
#!/bin/sh
## updates the sway keyboard setting to the currently active X11 layout
swaymsg input type:keyboard xkb_layout "$(localectl status | grep "X11 Layout" | sed -e "s/^.*X11 Layout://")"
swaymsg input type:keyboard xkb_variant "$(localectl status | grep "X11 Variant" | sed -e "s/^.*X11 Variant://")"