I was thinking about writing a script that toggles my desktop between regular use and screencasting mode. As part of that I would like to be able to programmatically set the my cursor to a different theme (bigger and higher visibility).
Is there any way I can do this from bash/python?
Edit:
I would prefer to be able to set this without having to change the systemwide X.org configuration (just like KDE's systemsettings does). Looking into this a bit myself I found that you can actually update the corresponding KDE config file through kwriteconfig5
:
kwriteconfig5 --file ~/.config/kcminputrc --group Mouse --key cursorTheme "Large Mouse Cursors"
The only problem is that the setting does not seem to be applied. The config file does update, but not the cursor. So there probably must be some kind of command that will cause KDE to reload the file and apply the new cursor theme (maybe something through dbus
?). Sadly I haven't had any success in tracking that down, yet.
update-alternatives
sadly seems to require root. Given how you can change the cursors from KDE's systemsettings menu as a user, I was hoping that I'd be able to do the same through a script.I've actually just updated my question with some promising discoveries I stumbled on recently. Hopefully someone will be able to use that to put together the final pieces of the puzzle.
– Glutanimate Apr 21 '18 at 16:37