Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.72k stars 710 forks source link

Manually configuring width does not work. #938

Open leier69 opened 3 years ago

leier69 commented 3 years ago

Hi!

Manually configuring the width of the bar does not work. Height work but not width, could you please look into this?

{
    "layer": "top",
    "height": 100,
    "width": 1400,
    "modules-left": ["sway/workspaces", "sway/mode"],
    "modules-center": [],
    "modules-right": ["network", "pulseaudio", "battery", "cpu", "memory", "clock"],
...

image image

leier69 commented 3 years ago

Additional question: Is it possible to configure width/height in percentage of screen? that would be amazing

gingkapls commented 3 years ago

Have you tried setting the left and right margin values in the config? Without setting the margins the width wasn't working for me either, but now it does.

tested on waybar 0.9.7

pocek commented 2 years ago

Width configuration doesn't work for me either (latest git master). It works when gtk-layer-shell option is set to false (but it creates other problems).