The WINDOW_ID technique in spotify-panel.sh didn't work for me. I found this works:
xdotool search --desktop 0 Spotify windowactivate
Nice scripts overall. I managed to add a active icon fairly easy, since your code was concise enough to understand. Now the current icon is the inactive and a green icon is the active. I've replaced the time/date clock and power management and another genmon(spotify) widget with yours. Grabbed the click code from the power management script and added it to the datetime script to bring up gworldclock for timezones to replace the python widget that I was using that was buggy. Really nice work here. Thanks for sharing. Even with the new battery widget I've save some space on my toolbar.
The WINDOW_ID technique in spotify-panel.sh didn't work for me. I found this works:
xdotool search --desktop 0 Spotify windowactivateNice scripts overall. I managed to add a active icon fairly easy, since your code was concise enough to understand. Now the current icon is the inactive and a green icon is the active. I've replaced the time/date clock and power management and another genmon(spotify) widget with yours. Grabbed the click code from the power management script and added it to the datetime script to bring up gworldclock for timezones to replace the python widget that I was using that was buggy. Really nice work here. Thanks for sharing. Even with the new battery widget I've save some space on my toolbar.