Hi, wondering how to create a System Tray icon related to turning the touchscreen on/off

I see a toggle within settings, but curious about how I could add either a System Tray icon that reflects the enabled/disabled state of the touchscreen.

Thanks for any suggestions. Hoping to put something together myself, assuming a better option doesn’t already exist.

Hi - For what it’s worth, while I don’t regularly use touchscreen devices, one idea could be to see if there’s a configuration file that changes in ~/.config (or one of its subdirectories) when you toggle the desired setting in the interface.

If so, you might be able to use kwriteconfig6 as the basis for whatever toggle tool you make, similar to what was described here: Energymanagement via Console - #2 by johnandmegh

There’s probably a more elegant method using D-Bus also, so folks who are more familiar with that topic might have some better ideas there :slight_smile:

1 Like