Skip to content

Instantly share code, notes, and snippets.

@rustyx
Last active July 7, 2026 16:55
Show Gist options
  • Select an option

  • Save rustyx/47727c7f6e19ec24d7a9cbd06cc255ec to your computer and use it in GitHub Desktop.

Select an option

Save rustyx/47727c7f6e19ec24d7a9cbd06cc255ec to your computer and use it in GitHub Desktop.
Example InputActions config with common mouse gestures for Ubuntu / GNOME
device_rules:
- conditions: $mouse
grab: true
ignore: false
motion_timeout: 500
motion_threshold: 30
# Never leak a right-click while a gesture is being captured.
unblock_buttons_on_timeout: false
mouse:
gestures:
- type: stroke
strokes: 'AAEAGGRiZAA=' # right-down
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftctrl+t ] # new tab
- type: stroke
strokes: 'V2QAugwAZAA=' # left-up
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftctrl+w ] # close tab
- type: stroke
strokes: 'ZCgAXgA7ZAA=' # left
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftalt+left ] # back
- type: stroke
strokes: 'ADcA/WQsZAA=' # right
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftalt+right ] # forward
- type: stroke
strokes: 'BGQA5l8AZAA=' # right-up
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftmeta+up ] # maximize
- type: stroke
strokes: 'YQAASgJkZAA=' # left-down
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftmeta+h ] # minimize
- type: stroke
strokes: 'L1QAzzEALTE0ZGQA' # up-down
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftctrl+r ] # reload
- type: stroke
strokes: 'AFAA4jEILyBkW2QA' # right-up-right-down
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftctrl+tab ] # next tab
- type: stroke
strokes: 'ZEwAwD8BKUQAYmQA' # left-up-left-down
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftctrl+leftshift+tab ] # previous tab
- type: stroke
strokes: 'XAcAYxAIHz4AMDEjDEo8ESJXRwNZXF7oZFNkAA==' # C
mouse_buttons: [ right ]
actions:
- on: end
input:
- keyboard: [ leftalt+f4 ] # close window
- type: stroke
strokes: 'YRgAUDE6GVwNQiqrADww1QIuNv0XLD8MZEtkAA==' # fish left: left-down-left-left-up-up-right-up-right-right-down
mouse_buttons: [ right ]
actions:
- on: end
command: gnome-calculator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment