Skip to content

Instantly share code, notes, and snippets.

@JoshuaSchlichting
Last active October 28, 2019 13:24
Show Gist options
  • Select an option

  • Save JoshuaSchlichting/86d57c04da383f28f9f3f6c940416db4 to your computer and use it in GitHub Desktop.

Select an option

Save JoshuaSchlichting/86d57c04da383f28f9f3f6c940416db4 to your computer and use it in GitHub Desktop.
Install mac like gestures on Linux with Gnome
#!/bin/bash
# Tested on Ubuntu 19.10 with Gnome
# Hardware: HP Spectre x360 (13-AW0023DX)
gpasswd -a $USER input
apt install libinput-tools
apt install xdotool
apt install ruby
gem install fusuma
mkdir ~/.config/fusuma
cat << 'EOF' >> ~/.config/fusuma/config.yml
swipe:
3:
left:
command: 'xdotool key alt+Shift+Tab'
right:
command: 'xdotool key alt+Tab'
up:
command: 'xdotool key super'
down:
command: 'xdotool key super'
4:
left:
command: 'xdotool key alt+Left'
right:
command: 'xdotool key alt+Right'
up:
command: 'xdotool key ctrl+alt+Down'
down:
command: 'xdotool key ctrl+alt+Up'
pinch:
in:
command: 'xdotool key ctrl+plus'
out:
command: 'xdotool key ctrl+minus'
threshold:
swipe: 0.4
pinch: 0.4
interval:
swipe: 0.8
pinch: 0.1
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment