21
submitted 7 months ago by shadowintheday2@lemmy.world to c/linux@lemmy.ml

On X I use

xmodmap -e "pointer = 3 2 1" // lefthand
xmodmap -e "pointer = 1 2 3" //righthand

On wayland/KDE, I must change it manually via system settings; and any other application that run on xwayland doesn't respect this

is it possible to change everything via cli, for both wayland and xwayland?

please help an old and tired boomer that is trying to stick with wayland and nvidia this time

top 2 comments
sorted by: hot top controversial new old
[-] Max_P@lemmy.max-p.me 4 points 7 months ago

For KDE specifically I think there's a dbus interface that can be called to switch it. You can find it with QDBusViewer or D-Feet.

I'd imagine XWayland would follow the same since it's essentially a Wayland client. But if you ran the xmodmap under xwayland, that may have inverted it in xwayland, and it's already inverted in KWin which would double invert it aka put it back to default.

Otherwise doing it at the evdev level will definitely work. It's a bit of a nuclear option but if it works...

[-] t_378@lemmy.one 2 points 7 months ago
this post was submitted on 13 Jan 2024
21 points (100.0% liked)

Linux

46738 readers
1829 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS