2023-07-25 15:39:26 +02:00
|
|
|
### Input configuration
|
|
|
|
#
|
|
|
|
# Example configuration:
|
|
|
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
|
|
# Put your touchpad's ID to replace "Touchpad-ID" (keep the quotation marks)
|
|
|
|
|
|
|
|
input type:touchpad {
|
|
|
|
dwt enabled
|
|
|
|
tap enabled
|
|
|
|
natural_scroll enabled
|
|
|
|
}
|
|
|
|
|
|
|
|
# Read `man 5 sway-input` for more information about this section.
|
|
|
|
#
|
2023-07-25 19:52:49 +02:00
|
|
|
input type:keyboard {
|
|
|
|
xkb_layout "us"
|
|
|
|
}
|
2023-07-25 15:39:26 +02:00
|
|
|
|
|
|
|
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://")"'
|
|
|
|
}
|
|
|
|
|
|
|
|
output DP-2 transform 270
|