Alexays / Waybar

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

Custom modules not appearing whatsoever, and a few modules have reverted to their default config, since updating to 0.9.24-3 via Pacman #2877

Closed revsuine closed 7 months ago

revsuine commented 7 months ago

I recently did a full system upgrade with yay -Syu. I have waybar installed from the official arch repos with the waybar package. I recently updated to 0.9.24-3—I believe my previous version was 0.9.24-2 if /var/cache/pacman/pkg/ is anything to go by.

Since performing this update, my waybar seems to have reverted to default configs for the disk, pulseaudio, network, bluetooth, and hyprland/submap modules. My custom modules are also not appearing at all. I have checked ~/.config/waybar/config and it is the same as before, so the update didn't overwrite my config, but it seems to be not fully respecting my config and disregarding it for some modules?

Here is a screenshot of a before and after the update: old_waybar 20240201_15h54m41s_grim I've redacted my network info, but the redacted network stuff on the old waybar was my essid and the redacted network stuff on the post-update waybar is my ifname.

Again, I did not change my config upon this update, it is the same config file for both screenshots.

The difference in the battery module is not a bug, it's just because my battery status is different at the different times, however the difference in the bluetooth module should not be there. My bluetooth was enabled and I didn't have any bluetooth devices connected in both screenshots, it should be the exact same.

My full config file:

{
    "margin": "8px 10px -2px 10px", 

    "height": 41, // Waybar height (to be removed for auto height)
    "modules-left": ["custom/wmname", "hyprland/workspaces", "hyprland/window", "hyprland/submap"],
    "modules-center": [],
    "modules-right": ["bluetooth", "battery", "cpu", "memory", "disk", "pulseaudio", "clock", "custom/vpn", "network", "custom/powermenu"],

    "layer": "top",  // so that popups appear above windows not below
    "output": "eDP-1",  // main monitor

    // Modules configuration
     "hyprland/workspaces": {
         "active-only": false,
         "all-outputs": "true",
         "on-scroll-up": "hyprctl dispatch workspace e-1",
         "on-scroll-down": "hyprctl dispatch workspace e+1",
         "disable-scroll": false,
         "all-outputs": true,
         "format": "{name}",
         "on-click": "activate",
         "format-icons": {
             "1": " ",
             "2": " ",
             "3": "",
             "4": " ",
             "5": " ",
             "6": " ",
             "7": " ",
             "8": " ",
             "9": " ",
             "10": "󰊴 ",
         }
     },
    "hyprland/window": {  
    "format": "{}" 
    },
    "sway/mode": {
        "format": "<span style=\"italic\">{}</span>"
    },
    "sway/language": {
        "format": "{short} ⠀⠀"
    },
    "idle_inhibitor": {
        "format": "{icon}",
        "format-icons": {
            "activated": " ",
            "deactivated": " "
        }
    },
    "tray": {
        "spacing": 10
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
    "format": " {:%F %H:%M}",
    },
    "cpu": {
        "format": " {usage}%",
        "tooltip": false
    },
    "memory": {
        "format": " {}%",
        "tooltip-format": "{used:0.1f}GiB used of {total:0.1f}GiB"
    },
    "temperature": {
        "critical-threshold": 80,
        "format": "{temperatureC}°C {icon}",
        "format-icons": [" ", " ", " "]
    },
    "backlight": {
        "format": "{icon}{percent}%",
        "format-icons": ["󰃞 ", "󰃟 ", "󰃠 "],
        "on-scroll-up": "light -A 1",
        "on-scroll-down": "light -U 1"
    },
    "battery": {
        "states": {
            "warning": 30,
            "critical": 15,
        },
        "format": "{icon}{capacity}%",
        "tooltip-format": "{timeTo}, {capacity}%",
        "format-charging": " {capacity}%",
        "format-full": " ",
        "format-plugged": " ",
        "format-alt": "{time} {icon}",
        "format-icons": ["  ", "  ", "  ", "  ", "  "]
    },
        "format-wifi": "󰖩 {essid}",
        "format-ethernet": "{ifname}: {ipaddr}/{cidr}  ",
        "format-linked": "{ifname} (No IP)  ",
        "format-disconnected": "󰖪  Disconnected",
        "tooltip-format": "{essid} {signalStrength}%"
    },
    "pulseaudio": {
        "format": "{icon}{volume}% {format_source}",
        "format-bluetooth": "{icon} {volume}% {format_source}",
        "format-bluetooth-muted": "   {volume}% {format_source}",
        "format-muted": "  {format_source}",
        "format-source": "",
        "format-source-muted": "",
        "format-icons": {
            "headphone": " ",
            "hands-free": " ",
            "headset": " ",
            "phone": " ",
            "portable": " ",
            "car": " ",
            "default": [" ", " ", " "]
        },
        "tooltip-format": "{desc}, {volume}%",
        "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
        "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
        "on-click-middle": "pavucontrol"
    },
    "custom/vpn": {
        "exec": "$HOME/.config/waybar/vpn.sh",
        "return-type": "json",
        "tooltip": true,
        "interval": 1,
        "format": "{}",
        "on-click": "$HOME/scripts/vpn.sh t",
        "on-click-right": "$HOME/scripts/vpn.sh c",
        "on-click-middle": "$HOME/scripts/vpn.sh d",
        "max-length": 1
    },
    "custom/media": {
        "format": "{icon} {}",
        "return-type": "json",
        "max-length": 40,
        "format-icons": {
            "spotify": " ",
            "default": " "
        },
        "escape": true,
        "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null",
        "on-click": "playerctl play-pause",
    },
    "custom/wmname": {
        "format": "󰣇 ",
        "tooltip": false,
        "on-click": "$HOME/scripts/launcher.sh",
        "on-click-right": "$HOME/scripts/screenshot.sh"
    },
    "custom/fans": {
        "format": "{}",
        "exec": "$HOME/.config/waybar/fans.sh",
        "escape": true,
        "restart-interval": 10,
    },
    "custom/powermenu": {
      "format": " ",
      "on-click": "wlogout",
    },
    "bluetooth": {
        "format": "",
        "format-on": "",
        "format-disabled": "",
        "format-off": "",
        "format-connected": " {device_alias}",
        "format-connected-battery": " {device_alias} {device_battery_percentage}"
    },
    "disk": {
        "format": " {percentage_used}%"
    },
    "hyprland/submap": {
        "format": "{} mode"
    },
    "network": {
        "format-wifi": "󰖩 {essid}",
        "format-ethernet": "{ifname}: {ipaddr}/{cidr}  ",
        "format-linked": "{ifname} (No IP)  ",
        "format-disconnected": "󰖪  Disconnected",
        "tooltip-format": "{essid} {signalStrength}%"
    }
}

It's not in the screenshots, but my hyprland/submap module has also gone from saying {} mode to just {}.

revsuine commented 7 months ago

Never mind, I'm so dumb. Somehow the "network" module opening brace got deleted? I must have accidentally edited it. Well that was a quick fix. Sorry for clogging up the issues!