Waybar
Waybar copied to clipboard
Waybar not loading
Yesterday Waybar was loading, except Workspaces module was not working. Today, nothing works. I've gone through the json module file, config and style.css and I've commented each section, one at a time and cannot figure out what is stopping it from loading.
When I try to execute Waybar I get:
{user} @ ~ $ waybar [2024-05-11 18:49:41.951] [info] Using configuration file /home/user/.config/waybar/config [2024-05-11 18:49:41.951] [info] Including resource file: ~/.config/hypr/hyprmodules.json [2024-05-11 18:49:41.951] [error] Could not connect: Connection refused
On which version of Hyprland are you? I had the same issue which went away after I updated to v0.40.0.
After lots of digging, I'm a goof who doesn't listen to audio enough apparently. I forgot to install pavucontrol, and I'm guessing that the error was coming from the audio module. I know I commented it out at one point, but I must have missed something. After installing pavucontrol, everything works fine now.
I'm also getting this error after updating Waybar and Hyprland. Are there any tips for debugging this? I'm not even sure where to start since "Connection Refused" isn't really clear what can't be connected to.
The error:
[2024-08-02 17:51:31.457] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-08-02 17:51:31.457] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-08-02 17:51:31.457] [debug] Try expanding: $HOME/.config/waybar/config
[2024-08-02 17:51:31.457] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2024-08-02 17:51:31.457] [debug] Found config file: $HOME/.config/waybar/config.jsonc
[2024-08-02 17:51:31.457] [info] Using configuration file /home/your_user/.config/waybar/config.jsonc
[2024-08-02 17:51:31.457] [error] Could not connect: Connection refused
I get it with the config that has been working for me as well as a minimal config:
{
"layer": "top",
"position": "top",
"height": 42,
"spacing": 0,
"modules-left": [
],
"modules-center": [],
"modules-right": []
}
Hyprland version: v0.41.2
Waybar version: v0.10.4
Edit:
Turns out my issue is with dbus not starting properly in Hyprland and not a problem with Waybar at all. Whenever I try to check the status of a systemd service running for my specific user, I get an error saying it can't connect to D-Bus. I also see an error in my dmesg logs saying that XDG_RUNTIME_DIR
isn't set, yet I can see it is set appropriately for my user. I wasn't able to figure it out in the couple hours or so I had, so I swapped back to GNOME temporarily until I have time to look at it again. I'll leave this up here in case anyone comes across this later on.