Skip to content

Instantly share code, notes, and snippets.

@tcmhoang
Last active February 26, 2022 15:03
Show Gist options
  • Save tcmhoang/6d57da9bf7f8948cbbded2ceadca3b1b to your computer and use it in GitHub Desktop.
Save tcmhoang/6d57da9bf7f8948cbbded2ceadca3b1b to your computer and use it in GitHub Desktop.
Update key mapping
swipe:
3:
left:
command: 'xdotool key alt+Right' # History forward
right:
command: 'xdotool key alt+Left' # History back
up:
command: 'xdotool key Control_L+t' # Open new tab
keypress:
LEFTSHIFT:
command: 'xdotool key --clearmodifiers Control_L+shift+t' # Open last closed tab
down:
command: 'xdotool key Control_L+w' # Close tab
4:
left:
workspace: 'next' # Switch to next workspace
keypress:
LEFTSHIFT:
window: 'next' # Move window to next workspace
LEFTMETA:
command: 'xdotool key --clearmodifiers super+Control_L+Left' # Move window to left side
right:
workspace: 'prev' # Switch to previous workspace
keypress:
LEFTSHIFT:
window: 'prev' # Move window to previous workspace
LEFTMETA:
command: 'xdotool key --clearmodifiers super+Control_L+Right' # Move window to right side
up:
command: 'xdotool key Control_L+F10' # Workspace overview
keypress:
LEFTMETA:
window:
maximized: 'toggle' # Toggle Maximize/Unmaximize Window
down:
command: 'xdotool key Shift_L+Alt_L+Tab' #aaaaa
keypress:
LEFTMETA:
window: 'close' # Close window
pinch:
2:
in:
command: 'xdotool keydown Control_L click 4 keyup Control_L' # Zoom in
out:
command: 'xdotool keydown Control_L click 5 keyup Control_L' # Zoom out
4:
in:
command: 'xdotool key alt+a' # Window overview customize
out:
command: 'xdotool key Control_L+super+d' # Workspace overview
rotate:
3:
clockwise:
command: 'xdotool key XF86MonBrightnessUp' # Brightness up
counterclockwise:
command: 'xdotool key XF86MonBrightnessDown' # Brightness down
plugin:
inputs:
libinput_command_input: # options for lib/plugin/inputs/libinput_command_input
enable-tap: true # click to tap
enable-dwt: true # disable tap while typing
show-keycodes: true # https://github.com/iberianpig/fusuma-plugin-keypress#add-show-keycode-option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment