Input devices
Input uses libinput and XKB. Settings are flat key=value lines, and device_rule overrides them per device.
Keyboard
xkb_rules_layout=us,de
xkb_rules_options=grp:alt_shift_toggle,caps:escape
repeat_rate=25
repeat_delay=600
numlock_on=0
switch_keyboard_layout changes the layout from a bind.
Pointer and trackpad
| Key | Default | Effect |
|---|---|---|
tap_to_click | 1 | Tap to click |
tap_and_drag | 1 | Tap and hold to drag |
trackpad_natural_scrolling | 0 | Natural scrolling on the trackpad |
mouse_natural_scrolling | 0 | Natural scrolling on the mouse |
mouse_accel_profile | 2 | 0 none, 1 flat, 2 adaptive |
mouse_accel_speed | 0.0 | -1.0 to 1.0 |
sloppy_focus | 1 | Focus follows the pointer |
Per-device rules
device_rule=type:trackpad,tap_to_click:1
device_rule=name:A4Tech USB Mouse,natural_scrolling:1,accel_speed:0.1
Find device names with dfmsg watch all-devices.
Gestures and panning
gesturebind=none,left,3,focusdir,left
gesturebind=none,up,4,enteroverview
mousebind=SUPER,btn_left,canvas_drag
Syntax: gesturebind=MODIFIERS,DIRECTION,FINGERS,COMMAND,PARAMETERS. Mouse and gesture bindings.