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

Polybar hide only when floating window is focused #17

Open
Cyliann opened this issue Jan 18, 2021 · 2 comments
Open

Polybar hide only when floating window is focused #17

Cyliann opened this issue Jan 18, 2021 · 2 comments

Comments

@Cyliann
Copy link

Cyliann commented Jan 18, 2021

I want to hide my polybar only when a floating window is in focus (eg. firefox). Any idea how to do it? I use AwesomeWM

@tadly
Copy link
Owner

tadly commented Jan 19, 2021

Interesting idea but no, this isn't possible at it's current state.

This would require to monitor the entire X session for all window changes, check if a window-manager specific floating flag is set and act upon it (floating is different across wms like i3, awesome, dwm etc.).

As this is wm dependent it's not something I would want add to hideIt but if there's a way to do said monitoring you still can achieve this with a custom script + hideIt by using the --signal option.

The custom script would have to monitor your X session (not sure how, this would be your homework :P) and when the the active window or the floating state of the active window changes, you'd call:

$ hideIt.sh --name <window you want to hide/show> --toggle

Hope this was at least somewhat helpful :)

@Cyliann
Copy link
Author

Cyliann commented Jan 19, 2021

Thanks a lot. I'll think about it, but i'm just a beginner, so it'll take a lot of time. I'll write here any updates

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