Change Panel icon on the fly

Forum rules
Before you post please read how to get help
Post Reply
aborup
Level 1
Level 1
Posts: 1
Joined: Sat Feb 20, 2021 6:40 pm

Change Panel icon on the fly

Post by aborup »

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 to be yellow otherwise green (both icons exist). 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. I must log out and back in for the new icon to appear. Is there a way for me to have this change immediately reflected?
Post Reply

Return to “Themes, Icons, & Wallpaper”