hideIt.sh
hideIt.sh copied to clipboard
Not hiding tray
I set up hideit to hide my polybar to the bottom, and it's working but the tray doesn't move with the bar. It stays stuck onscreen.
Just found this script and messing around with it. Don't know exactly why, but from what I found it only manages one window, and those count as two windows. Let me know if you get this sorted because I'm trying to find a workaround. Maybe run two different instances with IDs?
Dammit, totally forgot about this issue. Sorry.
So yeah. The tray is a separate window and hidIt only manages one at any given time. hideIt also does not know if a window contains a tray and figuring this out (if at all possible) would add a lot of boilerplate code which I'm not fond of adding.
This is why I used to have two separate polybars, one for the systray and one for the main bar as shown in the readme.
In regards to the systray it gets even worse.
Every element inside the tray is its own window too which is why you can't use --hover
as explained in the Q&A
The only workaround I can think of right now is to run hideIt twice, both using --region
with the same region defined so the activate the same.
Because the windows would not move in sync, this would probably look horrendous though ':D
Two commands are definitely needed. It works ok when I put the tray to the left (but not to the right for some reason). Sometimes they appear/disappear slightly out of sync which is indeed a little bit horrendous.
hideIt.sh --wait --name '^polybar-markbar_DP-1$' -d bottom --region 0x2160+3820+-60
hideIt.sh --wait --name '^Polybar tray window$' -d bottom --region 0x2160+3820+-60