Skip to content

Instantly share code, notes, and snippets.

@huytd
Created January 15, 2021 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huytd/0a97a3f5674750892d778d0568b53a3e to your computer and use it in GitHub Desktop.
Save huytd/0a97a3f5674750892d778d0568b53a3e to your computer and use it in GitHub Desktop.
Some tweak for my input devices on Linux
# Swap Alt and Win key
setxkbmap -option altwin:swap_alt_win
# Map CapsLock to Ctrl
setxkbmap -option ctrl:nocaps
# Hold right mouse button to scroll
xinput --set-prop 'pointer:Logitech MX Ergo' 'libinput Scroll Method Enabled' 0, 0, 1
xinput --set-prop 'pointer:Logitech MX Ergo' 'libinput Button Scrolling Button' 3
xinput --set-prop 'pointer:Logitech MX Ergo' 'libinput Middle Emulation Enabled' 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment