DRAGONFRUIT PROJECT Wayland compositor · Linux Codeberg repository ↗
dragonfruitWayland compositor

Input devices

Keyboards, mice, trackpads and gestures

Input devices

Input uses libinput and XKB. Settings are flat key=value lines, and device_rule overrides them per device.

SECTION 02 · Compositor & desktop
Scope: libinput / XKB
Repository and source ↗

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

KeyDefaultEffect
tap_to_click1Tap to click
tap_and_drag1Tap and hold to drag
trackpad_natural_scrolling0Natural scrolling on the trackpad
mouse_natural_scrolling0Natural scrolling on the mouse
mouse_accel_profile20 none, 1 flat, 2 adaptive
mouse_accel_speed0.0-1.0 to 1.0
sloppy_focus1Focus 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.

← Previous

Workspaces

Next →

Displays & outputs