Waybar
Waybar copied to clipboard
Adwaita gtk3 theme changes min height option
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? :-)
The temporary workaround of course is to launch Waybar with a different Gtk theme, e.g. exec env GTK_THEME=Minwaita waybar.
https://github.com/Alexays/Waybar/blob/331b28393aa65354e8a7bdff5a35a61f8d2479cc/resources/style.css#L6 Weird, though, there's this.
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 ?
On NixOS, adapta-gtk-theme give 18px height
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?
has anyone found any fixes yet?
Maybe this helps:
/* ~/.config/waybar/style.css */
@import "/etc/xdg/waybar/style.css";
* {
min-height: 0;
}
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?
This seems to work for me : https://github.com/eoli3n/dotfiles/blob/master/roles/waybar/files/waybar/waybar.sh#L11
TBC, I can use Adapta. The issue is that doing so was not fixing the height issue.