Registered Member
|
I would like to use bash script to change the icon in a panel. I want an icon to function as an on-off or open-close toggle with different icons showing the present status. How can this be done?
|
Administrator
|
I'm afraid this isn't possible - you could write your own (Javascript based) applet and integrate the functionality from there.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I'm working on the exact same problem, it’s no big deal to change the corresponding .desktop file, e. g. with sed:
The only problem is: To apply the icon in the panel there's some kind of refresh of the panel (or just the starter, if possible) needed. The same refresh takes place when you right-click the icon, change something in it's settings (or have something changed in the .desktop file before) and click OK. It's just the process of re-reading the .desktop file, is it really that big a deal to make it doing this via the shell? A brutal and time-consuming, yet possible way to force reloading is the restart of the whole desktop environment:
But this can't be the only way, or is it? |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]