Easy mouse settings changing from right- to left-handed

Konstantin Kharlamov hi-angel at yandex.ru
Sat Feb 18 14:02:53 GMT 2023

On Sat, 2023-02-18 at 16:22 +0300, Konstantin Kharlamov wrote:
> On Sat, 2023-02-18 at 13:09 +0100, Tobias Leupold wrote:
> > Hi all!
> > 
> > My little son starts to use a computer for school, so I currently share my 
> > notebook with him. He's left-handed (and I'm right-handed), so I searched
> > for 
> > a convenient way to switch the mouse settings from right-handed to left-
> > handed
> > and vice versa, like with a small systray icon and just one click to do.
> > 
> > The only thing I found was "mouseswap-kf5" (
> > https://www.pling.com/p/998954/ )
> > which seems to do this exact thing. But it seems to be outdated and 
> > unmaintained -- I could not build it.
> > 
> > I then looked into the sources and thought it could not be that hard to re-
> > write or update the thing, but after messing a bit with it, I have to admit 
> > that I have no idea how to do it properly ;-) I could not even connect to
> > some
> > DBUS signal telling me that any systemsettings setting has been changed (I 
> > never worked with this before) ...
> > 
> > So: Is there anything comparable we have in "official" KDE? And if not, can 
> > anybody point me to docs about how to do it, so that I can try to implement 
> > this myself?
> > 
> > This would imo be a nice addition to the default mouse system settings, like
> > "show a systray icon to switch between left- and right-handed" or such. I 
> > think this would be a nice extra for a lot of people sharing their computer 
> > with others.
> Did you consider adding a separate user account, and just logging out/in as
> the
> new user for him to use? So one user would be left-handed, the other one is
> right-handed.
> P.S.: I tried running `dbus-monitor` and changing left-handness in
> systemsettings5, but don't see any event being sent, so not sure how to
> automate
> such change. Perhaps someone else knows.

I wrote a mail, but closed it. Oh, well. Basically, just wanted to say that you can use `systemsettings5 kcm_mouse` to invoke the mouse menu.

More information about the kde-devel mailing list