I'm trying left handed mousing, and I want to be able to easily switch between right handed mode and left handed mode. There is a utility for Windows called SwapMouseButtons that allows to bind a key for that switch - both swapping the buttons and changing the pointer's direction.
I would like to do something similar for KDE in a shell script.
Swapping the buttons is easy with
xinput, but I'm having a hard time changing the mouse theme to a left handed theme from the command line. I also prefer to find a KDE solution for the button swapping, as changes made via
xinput are session-bound and KDE settings are saved. I wouldn't like to have a left handed theme with right handed buttons after a reset...
The problem is, I can't find much documentation on KDE's command line utilities. I found this post that suggests using
kapplymousetheme, which seems promising, but I can't figure out how to use it(no man page, no
I've also found that
kcmshell4 cursortheme opens the mouse theme dialog, and that
kcmshell4 accepts the
--args flag for sending arguments to the module, but I couldn't find nor figure out what arguments I need to send to just change the mouse theme without opening the dialog(if that's even supported).
I should also note that I want these changes to take effect immediately. Changing a configuration file and having to restart the system(or even just X or KDM) won't do, though if I can reload that configuration file(with a command line utility, of course) so that the changes will take effect immediately that will be fine.
Thanks in advance!