Search found 9 matches

by aborup
Mon Mar 29, 2021 10:16 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

#!/bin/bash # This script is used to toggle CyberGhost # - if connected, then disconnect it # - if disconnected, then connect it # Kill any other notifications that might be displayed at the moment. # notify-send does not offer a way to "cancel" a previously sent notification, so # the wo...
by aborup
Mon Mar 29, 2021 8:33 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Whoop whoop! I have gotten this to work. The answer was to use "setsid mate-panel --replace >/dev/null 2>&1 < /dev/null &" after I updated the cytoggle.desktop file to use the correctly colored icon. I will put the completed script here once I can figure out how to upload it.
by aborup
Mon Mar 29, 2021 7:11 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

How do I attach a script like you just did? Can't seem to figure that out quickly. I want to attach my "cytoggle" script. My "cytoggle" script does everything I want except change the panel launcher's icon color. If the VPN is connected, it disconnects it. If not connected, it co...
by aborup
Fri Mar 26, 2021 12:29 am
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Hmmm... I have been away on a short trip but can now get back to this. Not sure how to add to the system's notification area or manipulate that. I am wondering if my solution might be to kill mate-panel and relaunch it via my script. Sounds a bit heavy-handed though.
by aborup
Mon Mar 22, 2021 1:20 am
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Thanks for your efforts! Yes... Indeed I meant to type MATE but my mind typed Mint. And yes... the file I found where I can change the panel icon is cytoggle.desktop in the directory I mentioned above. #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Icon=/home/al/...
by aborup
Sun Mar 21, 2021 6:26 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Yes indeed, I am running Mint on all my machines. I have located the directory where my panel's launcher properties are stored: $HOME/.config/mate/panel2.d/default/launchers. I can edit my launcher file and change the name of the icon there, but it is not immediately reflected in my panel. Perhaps y...
by aborup
Sat Mar 20, 2021 5:55 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Thanks for the feedback!
I will experiment with that for my VPN needs.

However, my original question is still needing an answer:

How does one update an icon in the panel on the fly without having to reload the whole panel?
by aborup
Fri Mar 12, 2021 1:32 am
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Re: Change Panel icon on the fly

Bump. Nobody has a notion about how to do this?

I know it can be done, my battery icon is an example. It changes when plugged in or out. Also, my network icon changes with status. I just want to know how that's done so I can make MY icon change with status.
by aborup
Sat Feb 20, 2021 6:52 pm
Forum: Themes, Icons, & Wallpaper
Topic: Change Panel icon on the fly
Replies: 22
Views: 1131

Change Panel icon on the fly

Hello all. I hope I am posting in the correct place. I am using Mint Mate 20.1 I have a launcher in my panel that fires a script that toggles my VPN on or off when it is clicked. I would really like the launcher's icon to reflect the current state of the VPN. If it is connected, then I want the icon...

Go to advanced search