Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The WINDOW_ID technique didn't work for me #13

Closed
bonelifer opened this issue Jun 15, 2022 · 4 comments
Closed

The WINDOW_ID technique didn't work for me #13

bonelifer opened this issue Jun 15, 2022 · 4 comments

Comments

@bonelifer
Copy link

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.

@xtonousou
Copy link
Owner

Thanks @bonelifer !

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

@bonelifer
Copy link
Author

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

@xtonousou
Copy link
Owner

@bonelifer Could you submit a PR for this please?

@bonelifer
Copy link
Author

bonelifer commented Sep 14, 2022

@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 bonelifer reopened this Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants