Skip to content

Instantly share code, notes, and snippets.

@smileBeda
Last active December 8, 2023 08:13
Show Gist options
  • Save smileBeda/74a52fe7cb0901da9e67ae4e39966982 to your computer and use it in GitHub Desktop.
Save smileBeda/74a52fe7cb0901da9e67ae4e39966982 to your computer and use it in GitHub Desktop.
Fusuma Config
##
# Part of a full "MacOS on Gnome X experience setting"
# Here we control 4 and 3 finger gestures (pinch) and 4 finger gestures (swipe)
# Requires Fusuma https://github.com/iberianpig/fusuma, xdotool
# Other settings and controls done with:
# libinput-three-finger-gestures https://github.com/marsqing/libinput-three-finger-drag
# syngestures https://github.com/mqudsi/syngesture/ (only if you truly need two-finger history navigation)
# synaptics https://wiki.archlinux.org/title/Touchpad_Synaptics
# Kinto https://github.com/rbreaves/kinto
# Xorg
##
pinch:
# Screen Brightness controls. This is not mac native, and if your touchbar works, you can use Fn key to show these controls on the touchbar instead.
4:
out:
command: 'xdotool key XF86MonBrightnessUp'
accel: 12
interval: 0.07
threshold: 0.5
in:
command: 'xdotool key XF86MonBrightnessDown'
accel: 12
interval: 0.07
threshold: 0.5
# Audio Controls. This is not mac native, and if your touchbar works, you can use Fn key to show these controls on the touchbar instead.
3:
out:
command: 'xdotool key XF86AudioRaiseVolume'
accel: 12
interval: 0.07
threshold: 0.5
in:
command: 'xdotool key XF86AudioLowerVolume'
accel: 12
interval: 0.07
threshold: 0.5
# Zoom In and out
2:
out:
command: 'xdotool keydown ctrl key equal keyup ctrl'
accel: 12
interval: 0.07
threshold: 0.5
in:
command: 'xdotool keydown ctrl key minus keyup ctrl'
accel: 12
interval: 0.07
threshold: 0.5
swipe:
# Control 2 finger swipe gestures with syngestures
# Control 3 finger swipe gestures with libinput-three-finger-gestures
4:
left:
command: 'xdotool key super+alt+Right'
threshold: 0.001
interval: 0.5
accel: 0.5
right:
command: 'xdotool key super+alt+Left'
threshold: 0.001
interval: 0.5
accel: 0.5
up:
command: 'xdotool key alt+F1' # Show the Apps overview/Workspace overview. Make sure to use Kinto, since this will map to "cmd + space" and NOT alt+F1, but gnome things it is alt+f1
threshold: 0.001
interval: 0.5
down:
command: 'xdotool key Escape' # Hide the Apps overview/Workspace overview. Make sure to use Kinto, since this will map to "cmd + space" and NOT alt+F1, but gnome things it is alt+f1
threshold: 0.001
interval: 0.1
# Just a fallback, not used in this config, but if you ever forget them in a nested directive...
interval:
swipe: 0.1
threshold:
swipe: 0.5
# Make sure to install the full fusuma pack
plugin:
inputs:
libinput_command_input:
show-keycodes: true
verbose: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment