Alexays / Waybar

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

[Question] How do I check which module that changed the minimum height? #3743

Closed bps86 closed 3 weeks ago

bps86 commented 3 weeks ago

I've set some things up and suddenly my waybar minimum height changed because of module. How do I know which module is causing this effect?

[2024-11-04 00:37:24.485] [warning] Requested height: 30 is less than the minimum height: 46 required by the modules
[2024-11-04 00:37:24.485] [info] Bar configured (width: 1600, height: 46) for output: eDP-1

previously height 30 works but now it changed to 46. Note that I haven't change anything with style.css or config file. I did install some packages before this happened. Changing the font size still leaves huge gap between up and down so there must be other module that causing this effect.

bps86 commented 3 weeks ago

Found solution.

  1. Open waybar config, mine is at ~/.config/waybar/config.
  2. Sort every module first. So it'll look like this:
    "modules-left": [
        "sway/workspaces",
        "sway/mode",
        "sway/scratchpad",
        "custom/media"
    ],
    "modules-center": [
        "sway/window"
    ],
    "modules-right": [
        "mpd",
        "idle_inhibitor",
        "pulseaudio",
        "network",
        "cpu",
        "memory",
        "temperature",
        "backlight",
        "keyboard-state",
        "sway/language",
        "battery",
        "battery#bat2",
        "clock",
        "tray"
    ],
  3. Start check sweep from modules- right. Comment all array value except the last one.
    "modules-left": [
        "sway/workspaces",
        "sway/mode",
        "sway/scratchpad",
        "custom/media"
    ],
    "modules-center": [
        "sway/window"
    ],
    "modules-right": [
        // "mpd",
        // "idle_inhibitor",
        // "pulseaudio",
        // "network",
        // "cpu",
        // "memory",
        // "temperature",
        // "backlight",
        // "keyboard-state",
        // "sway/language",
        // "battery",
        // "battery#bat2",
        // "clock",
        "tray"
    ],
  4. After you found the module that causes size change, comment that module and uncomment the rest. If the issue still exist, comment it again and continue the sweep.
    "modules-left": [
        "sway/workspaces",
        "sway/mode",
        "sway/scratchpad",
        "custom/media"
    ],
    "modules-center": [
        "sway/window"
    ],
    "modules-right": [
        "mpd",
        "idle_inhibitor",
        "pulseaudio",
        "network",
        "cpu",
        "memory",
        "temperature",
        // "backlight",
        "keyboard-state",
        "sway/language",
        "battery",
        "battery#bat2",
        "clock",
        "tray"
    ],