HL.GestureSpec¶
- class HL.GestureSpec¶
Table accepted by
hl.gesture().
Shape¶
{
fingers = integer,
direction = string,
action = string | function,
mods = string?,
scale = number?,
mode = string?,
zoom_level = string?,
workspace_name = string?,
disable_inhibit = boolean?,
}
Fields¶
- fingersinteger
Number of fingers. Must be between
2and9.- directionstring
Direction string parsed by Hyprland’s gesture manager.
- actionstring or function
Gesture action or callback. See
hl.gesture()for accepted action names.- modsstring, optional
Modifier string.
- scalenumber, optional
Gesture delta scale. Must be between
0.1and10.- modestring, optional
Action-specific mode string.
- zoom_levelstring, optional
Action-specific zoom level string.
- workspace_namestring, optional
Workspace name for the
specialaction.- disable_inhibitboolean, optional
Disable inhibition handling for this gesture.
Used by¶
hl.gesture()Register or remove a gesture.