hideIt.sh icon indicating copy to clipboard operation
hideIt.sh copied to clipboard

Polybar hide only when floating window is focused

Open Cyliann opened this issue 3 years ago • 2 comments

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

Cyliann avatar Jan 18 '21 12:01 Cyliann

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 :)

tadly avatar Jan 19 '21 13:01 tadly

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

Cyliann avatar Jan 19 '21 13:01 Cyliann