You are not logged in.

#1 2026-05-07 22:20:44

sukolyn
Member
Registered: 2024-02-14
Posts: 162

dzen2 with herbstluftwm thin bar remains on hidden bar

hey

this doesn't belong to Arch but I don't get answer on dzen2 github

using latest herbstluftwm  and dzen2 available in repositories (through panel.sh) when dzen2 "togglehides" a thin line with dzen2's colors remains where dzen2 was.

it could be dzen2 border, but I can't get its parameters through herbstclient

Last edited by sukolyn (2026-05-07 22:21:59)

Offline

#2 2026-05-08 08:03:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

https://github.com/robm/dzen/blob/488ab … ion.c#L386
I suspect that's to unhide on mouse entering.

Online

#3 Today 14:00:13

sukolyn
Member
Registered: 2024-02-14
Posts: 162

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

ok.

dzen seems it isn't designed to be at the bottom of screen.
the line remains on top of dzen, whenever it is on top or at the bottom.
when dzen is on top, it doesn't bother ! hmm

can you imagine a way to get rid of this "scrollable zone", or to tell it to be at bottom ?

--
ps: sorry for late reply:  I forgot I posted here too.
shame on me. wink

Offline

#4 Today 18:26:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

Ah, you mean the line isn't at the screen edge but offset by the height of dzen2 (so like 24px above the bottom of the screen)?

You'll need to use XMoveResizeWindow instead of XResizeWindow in the a_*hide functions, using dzen.*_win.y and dzen.line_height for relative vertical movements and maintaining dzen.*_win.y
https://tronche.com/gui/x/xlib/window/X … indow.html

Online

#5 Today 19:41:22

sukolyn
Member
Registered: 2024-02-14
Posts: 162

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

Ah, you mean the line isn't at the screen edge but offset by the height of dzen2 (so like 24px above the bottom of the screen)?

yes, that's it.

You'll need to use XMoveResizeWindow instead of XResizeWindow in the a_*hide functions, using dzen.*_win.y and dzen.line_height for relative vertical movements and maintaining dzen.*_win.y

I can only guess this means downloading sources and recompiling the whole thing.

I don't have menu, so I don't need to deal with mouse entering.
I'm currently trying to `echo -n` ^lower() and ^hide() (and back ^raise() and ^unhide()), but wether I send one or the other (lower or raise) first, I get only one of these commands to do its work, not both

Offline

#6 Today 20:10:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

I can only guess this means downloading sources and recompiling the whole thing.

Yes, of course - dzen is very lightweight, the compilation will be done within seconds.

You could use xdtool to un/map the window instead of hiding it, but, sanity check: what are you using dzen for itfp?

Online

#7 Today 20:22:07

sukolyn
Member
Registered: 2024-02-14
Posts: 162

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

it's configured to show few  things : datetime, in/out audio levels, and desktops indexes; to know when, how loud and where I am. smile

Offline

#8 Today 20:44:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,403

Re: dzen2 with herbstluftwm thin bar remains on hidden bar

If you don't want to look into one of the maaaaany alternatives and don't want to patch and compile dzen2 your option is to use xdotool to un/map the window instead of dzen togglehide command - pick your poison.
I'll plug you https://aur.archlinux.org/packages/qiq-git (which will take much longer than dzen to compile - maybe a minute, but can also do much more)

Online

Board footer

Powered by FluxBB