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

Not hiding tray #16

Open
f3bruary opened this issue Oct 9, 2020 · 3 comments
Open

Not hiding tray #16

f3bruary opened this issue Oct 9, 2020 · 3 comments

Comments

@f3bruary
Copy link

f3bruary commented Oct 9, 2020

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

@AWOLASAP
Copy link

AWOLASAP commented Nov 2, 2020

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?

@tadly
Copy link
Owner

tadly commented Nov 3, 2020

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

@marrrrko
Copy link

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

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

4 participants