-
Notifications
You must be signed in to change notification settings - Fork 193
mouse gestures
github-actions[bot] edited this page May 26, 2026
·
4 revisions
Assign actions to mouse button presses with optional modifier keys.
mousebind=MODIFIERS,BUTTON,COMMAND,PARAMETERS-
Modifiers:
SUPER,CTRL,ALT,SHIFT,NONE. Combine with+(e.g.,SUPER+CTRL). -
Buttons: Can be specified in one of the following ways:
-
Standard Names:
btn_left,btn_right,btn_middle,btn_side,btn_extra,btn_forward,btn_back,btn_task -
Hardware Codes:
code:NUMBER(e.g.,code:272,code:273, useful for binding non-standard or extra mouse buttons)
-
Standard Names:
Warning: When modifiers are set to
NONE, onlybtn_middleworks in normal mode.btn_leftandbtn_rightonly work in overview mode.
# Window manipulation
mousebind=SUPER,btn_left,moveresize,curmove
mousebind=SUPER,btn_right,moveresize,curresize
mousebind=SUPER+CTRL,btn_right,killclient
mousebind=NONE,code:273,togglemaximizescreen,0Map scroll wheel movements to actions for workspace and window navigation.
axisbind=MODIFIERS,DIRECTION,COMMAND,PARAMETERS-
Direction:
UP,DOWN,LEFT,RIGHT
axisbind=SUPER,UP,viewtoleft_have_client
axisbind=SUPER,DOWN,viewtoright_have_clientEnable touchpad swipe gestures for navigation and window management.
gesturebind=MODIFIERS,DIRECTION,FINGERS,COMMAND,PARAMETERS-
Direction:
up,down,left,right -
Fingers:
3or4
Info: Gestures require proper touchpad configuration. See Input Devices for touchpad settings like
tap_to_clickanddisable_while_typing.
# 3-finger: Window focus
gesturebind=none,left,3,focusdir,left
gesturebind=none,right,3,focusdir,right
gesturebind=none,up,3,focusdir,up
gesturebind=none,down,3,focusdir,down
# 4-finger: Workspace navigation
gesturebind=none,left,4,viewtoleft_have_client
gesturebind=none,right,4,viewtoright_have_client
gesturebind=none,up,4,toggleoverview
gesturebind=none,down,4,toggleoverviewTrigger actions on hardware events like laptop lid open/close.
switchbind=FOLD_STATE,COMMAND,PARAMETERS-
Fold State:
fold(lid closed),unfold(lid opened)
Warning: Disable system lid handling in
/etc/systemd/logind.conf:HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore
switchbind=fold,spawn,swaylock -f -c 000000
switchbind=unfold,spawn,wlr-dpms on