How to autohide polybar?


#1

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


#2

hideIt.sh you can also download it via yaourt, yay, etc etc
if I remember correctly.
Regards


#3

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


#4

@billd I know of no reliable method to auto hide polybar either but there does appear to be python scripts listed after a quick google search, claiming to do that. I do remember reading -somewhere- of a way to allow windows to open on top of polybar and will try to find that again.


#5

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:

hideIt.sh -N '^polybar-openbox-bar_LVDS1$' -p 3 -d top -H

#6

Did you make this a keybind?


#7

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.


#8

Cheers Smoke. Added it to my i3 Config.


#9

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


#10

Thanks man.


#11

I used the search and your other topic came up …


#12

Hi ector,
Sorry to be dense, i am new at openbox and not sure of all the necessary steps. I have downloaded hideIt.sh 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.


#13

Give the following commands:
install

Yay -S hideIt.sh

or

yaourt -S hideIt.sh

start it from the terminal

hideIt.sh -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

hideIt.sh -N '^polybar-openbox-bar_LVDS1$' -p 3 -d top -H &

#14

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.


#15
yaourt hideIt.sh
1 aur/hideit.sh-git 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.
Regards

[don@don-pc ~]$ yay hideIt.sh
1 aur/hideit.sh-git 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]  hideit.sh-git-r41.8fd7476-1

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

#16

Is hideIt.sh 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 hideIt.sh
but get error code 404, not found. Thanks.


#17

The -git version is:

https://aur.archlinux.org/packages/hideit.sh-git/


#18

You can also download the script from here


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