Skip to content

Instantly share code, notes, and snippets.

@tylermenezes
Last active August 21, 2016 12:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylermenezes/3119050 to your computer and use it in GitHub Desktop.
Save tylermenezes/3119050 to your computer and use it in GitHub Desktop.
Add natural scroll for horizontal scrolling
#!/bin/bash
echo "remove Mod1 = Alt_L
remove Mod1 = Alt_R
remove Control = Control_L
remove Control = Control_R
keycode 135 = Super_R
keysym Control_L = Alt_L
keysym Alt_L = Control_L
keysym Control_R = Alt_R
keysym Alt_R = Control_R
add Mod4 = Super_R
add Mod1 = Alt_L
add Mod1 = Alt_R
add Control = Control_L
add Control = Control_R
pointer = 1 2 3 5 4 7 6 8 9 10 11 12
" > ~/.Xmodmap
sudo xmodmap ~/.Xmodmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment