Created
January 15, 2021 23:32
-
-
Save huytd/0a97a3f5674750892d778d0568b53a3e to your computer and use it in GitHub Desktop.
Some tweak for my input devices on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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