dotfiles/.config/sway/config.d/02-inputs.conf

28 lines
869 B
Plaintext

# sway # inputs
### Input configuration
# Example configuration:
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
# evdev is an Xorg input driver for Linux's generic event devices,
# including most mice, keyboards, tablets and touchscreens.
input * xkb_rules evdev
#input "type:keyboard" {
# xkb_layout gb
# xkb_options altwin:menu_win
#}
# trying auto-detection
exec_always {
'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://")"'
}