xfce4-genmon-scripts icon indicating copy to clipboard operation
xfce4-genmon-scripts copied to clipboard

The WINDOW_ID technique didn't work for me

Open bonelifer opened this issue 2 years ago • 4 comments

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.

bonelifer avatar Jun 15 '22 04:06 bonelifer

Thanks @bonelifer !

Do you have the xdotool by any chance? This is a required dependency in order to gain focus on windows like Spotify.

xtonousou avatar Sep 09 '22 17:09 xtonousou

Of course, as you can see my working line starts with "xdotool".

bonelifer avatar Sep 10 '22 00:09 bonelifer

@bonelifer Could you submit a PR for this please?

xtonousou avatar Sep 10 '22 13:09 xtonousou

@xtonousou #16 Done. I assumed you only wanted the xdotool change. If you wanted the inactive/active change, I can push that as well, but I went through 15-20 images before finding the right one, so I can't vouch for the icons licensing as I don't remember where I found it and if I had to make changes to it.

bonelifer avatar Sep 14 '22 04:09 bonelifer