nix/home/config/sway/module/Input.nix

50 lines
975 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
config,
...
}:{
text = ''
### 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.
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
input type:pointer {
accel_profile flat
pointer_accel 0
dwt enabled
tap enabled
natural_scroll enabled
middle_emulation enabled
}
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
input type:touchpad {
accel_profile flat
pointer_accel 0
dwt enabled
tap enabled
natural_scroll enabled
middle_emulation enabled
}
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
input type:keyboard {
xkb_layout ${config.module.keyboard.layouts}
xkb_options ${config.module.keyboard.options}
}
2024-04-06 03:03:58 +03:00
2024-11-04 04:37:29 +03:00
# Hide mouse cursor after a period of inactivity.
seat seat0 hide_cursor 5000
2024-07-28 00:51:53 +03:00
2024-11-04 04:37:29 +03:00
# Per-window languages.
exec swaykbdd
'';
2024-04-06 03:03:58 +03:00
}