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

Not hiding tray

Open f3bruary opened this issue 3 years ago • 3 comments

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.

Screencast 2020-10-09 21:11:43

f3bruary avatar Oct 09 '20 19:10 f3bruary

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?

AWOLASAP avatar Nov 02 '20 19:11 AWOLASAP

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

tadly avatar Nov 03 '20 06:11 tadly

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

bar

marrrrko avatar Jul 11 '22 16:07 marrrrko