Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Adwaita gtk3 theme changes min height option

Open trbjo opened this issue 6 years ago • 10 comments

With the Arc/Arc-dark/Arc-solid etc. themes I could set the Waybar height to 22 pixels. Now after switching to the default gtk3 theme, Adwaita, the minimum height is 24 pixels.

It also changed the space between the modules. That I fixed with increasing the padding. But I can't seem to decrease the height. I have tried everything in the style.css to no avail.

Is it possible to let me instead of the Gnome developers decide the height of Waybar? :-)

trbjo avatar Feb 22 '19 07:02 trbjo

The temporary workaround of course is to launch Waybar with a different Gtk theme, e.g. exec env GTK_THEME=Minwaita waybar.

trbjo avatar Feb 22 '19 09:02 trbjo

https://github.com/Alexays/Waybar/blob/331b28393aa65354e8a7bdff5a35a61f8d2479cc/resources/style.css#L6 Weird, though, there's this.

Alexays avatar Feb 22 '19 10:02 Alexays

There is no Minwaita theme on NixOS https://nixos.org/nixos/packages.html?channel=nixos-unstable&query=Minwaita

Do you know any other Gtk theme which could be a workaround ?

eoli3n avatar Jan 01 '20 15:01 eoli3n

On NixOS, adapta-gtk-theme give 18px height

eoli3n avatar Jan 02 '20 20:01 eoli3n

Any progress on this issue?

I want my bar to be 12px, but this issue is forcing the bar to 24px height (default Adwaita theme), eating up a lot of valuable space.

EDIT: Till this issue is fixed, is there any workaround that I can use to force the bar height to 12px?

subnut avatar Feb 26 '22 12:02 subnut

has anyone found any fixes yet?

oliverjhn avatar Jul 12 '23 04:07 oliverjhn

Maybe this helps:

/* ~/.config/waybar/style.css */

@import "/etc/xdg/waybar/style.css";

* {
	min-height: 0;
}

t-8ch avatar Jul 12 '23 05:07 t-8ch

FWIW, none of the workarounds listed here work on Arch + Sway as of today. The only one I haven't tried is Minwaita since the AUR package is out-of-date, but I can confirm that Adapta does not seem to work with "GTK_THEME=Adapta".

I'm not really sure how themes work though. Is this being tracked upstream?

rothn avatar Apr 27 '24 05:04 rothn

This seems to work for me : https://github.com/eoli3n/dotfiles/blob/master/roles/waybar/files/waybar/waybar.sh#L11

eoli3n avatar Apr 27 '24 06:04 eoli3n

TBC, I can use Adapta. The issue is that doing so was not fixing the height issue.

rothn avatar Jun 01 '24 17:06 rothn