How to autohide polybar?

Hi guys,
I’m almost sure this has an answer, probably posted in a very conspicuous place, but i just cannot find it. How do i autohide polybar? Ideally I’d like intelligent autohide where it completely disappears when the window of a program needs to cover it, and reappears when not. Is that a possibility? If not, a simple autohide will suffice. Thanks.
bill you can also download it via yaourt, yay, etc etc
if I remember correctly.


I have not found an entirely reliable way to auto-hide Polybar.

with this script I find myself very well and it works very well, I’m using it more than a year, never had a problem.
But maybe I did not understand your question.

I installed the script in / usr / bin /
I gave the following command and the auto-hide works without problems.
:roll_eyes::joy: -N '^polybar-openbox-bar_LVDS1$' -p 3 -d top -H
1 Like

Did you make this a keybind?

hideit is more like a daemon, you don’t need to bind it.

You run it once when starting and it will hide the bar, when you mouse over the threshold it will show it.


Cheers Smoke. Added it to my i3 Config.

I put it in autostart openbox, so it’s ready to start.

1 Like

Thanks man.

1 Like

I used the search and your other topic came up …


Hi ector,
Sorry to be dense, i am new at openbox and not sure of all the necessary steps. I have downloaded but am not able to install it. Could you give me the necessary commands? It appears to be exactly what i need if only i could get it installed and in the right place. Thx.

Give the following commands:

Yay -S


yaourt -S

start it from the terminal -N '^polybar-openbox-bar_LVDS1$' -p 3 -d top -H

Find the windows name

$ xprop | grep WM_NAME
my is

WM_NAME(STRING) = "polybar-openbox-bar_LVDS1"

to start it on startup,paste this on openbox autostart -N '^polybar-openbox-bar_LVDS1$' -p 3 -d top -H &
1 Like

Thank so much for your kind patience on this!

yaourt says it doesn’t exist. yay says package build exists, then gives me examples of arcane commands which i suppose are to do the build? I tried downloading directly from github but then had no idea how to build/install it.

1 aur/ r41.8fd7476-1 (2) (0,62)
    Automagically hide/show a window
==> Inserisci il numero dei pacchetti da installare (ex: 1 2 3 o 1-3)
==> -----------------------------------------------------------------

With yay, you just have to send it a couple of times and do it all by yourself.
arrived here by sending, until it downloads and then continues alone.

[don@don-pc ~]$ yay
1 aur/ r41.8fd7476-1 (+2 0.62%) 
    Automagically hide/show a window
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]

:: Downloaded PKGBUILD (1/1):
  1                    (Build Files Exist)
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> Diffs to show?

Is still available in AUR? I had it installed on another machine but never got around to trying it to hide polybar. Now starting anew i do
baph -i
but get error code 404, not found. Thanks.

The -git version is:


You can also download the script from here

and put it in
/ Usr / bin /
remember to give permission to execute