Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Left-handed mouse buttons #45

Open
toimine opened this issue May 14, 2024 · 3 comments
Open

[feature request] Left-handed mouse buttons #45

toimine opened this issue May 14, 2024 · 3 comments

Comments

@toimine
Copy link

toimine commented May 14, 2024

This is an option that exists in at least Xfce and Windows that swaps the left and right mouse buttons, making you press buttons with the right button, spawn context menus with the left button etc. Any games will also treat your right button as a left button, and vice versa.
I just tried setting up Window Maker on NixOS 23.11, but could find an option for it, maybe I missed something?

@d-torrance
Copy link
Member

I think this feature is probably beyond the scope of a window manager, but you could try adding the following to ~/GNUstep/Library/WindowMaker/autostart:

xmodmap -e "pointer = 3 2 1"

Note that autostart should be executable for this to work.

@toimine
Copy link
Author

toimine commented May 15, 2024

Of course, xmodmap! I forgot I could use that. That works perfectly, thanks.

@gryf
Copy link
Member

gryf commented May 15, 2024

the other option is to configure Xorg for input device, i.e.:

Section "InputDevice"
    Identifier  "Mouse"
    Driver      "mouse"
    Option      "Device" "/dev/input/mouse0"
    Option      "ButtonMapping" "3 2 1 4 5"
EndSection

although xmodmap way feels more flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants