chezmoi/dot_config/sway/config.d/input
kjuulh 27e934e4c5 Update .config/sway/config.d/default
Update .config/sway/config.d/input
Update .config/sway/config.d/output
2024-12-18 22:31:12 +01:00

31 lines
1.0 KiB
Plaintext

### Input configuration
#
# Read `man 5 sway-input` for more information about this section.
# Touchpad configuration
input type:touchpad {
dwt enabled
tap enabled
natural_scroll enabled
}
# Enable numlock by default
input type:keyboard xkb_numlock enabled
# Set keyboard layout and variant based on current system settings
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://")"'
}
# # Toggle between keyboard layouts. This example has the "us" and "gb"
# # keyboard layouts, and uses Alt+Shift to toggle between them.
# input "type:keyboard" {
# xkb_layout "us,gb"
# xkb_options "grp:alt_shift_toggle"
# }
# # Assign the same binding to "pkill -RTMIN+1 waybar" to send signal to
# # the Waybar keyboard module (so the module shows the updated layout).
# # This example uses Alt + left Shift.
# bindsym Alt+Shift_L exec "pkill -RTMIN+1 waybar"