tadly / hideIt.sh

Automagically hide/show a window by its name when the cursor is within a defined region or you mouse over it.
GNU General Public License v3.0
248 stars 11 forks source link

Polybar hide only when floating window is focused #17

Open Cyliann opened 3 years ago

Cyliann commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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