Getting waybar working
Getting waybar working

GitHub - Alexays/Waybar: Highly customizable Wayland bar for Sway and Wlroots based compositors. :tada:

Hey, I am trying to revive an old surface laptop with void linux, so far it hasn't been too bad. I decided to try and go with wayland and niri for the desktop environment with lightdm. It is all kind of working except for waybar which I can't seem to get going.
It does not launch on startup, I can run dbus-launch waybar
from the terminal and it kind of works (with a fair few warnings). But it does show at the top of the screen! Some errors from running it like this include:
[error] media stopped unexpectedly, is it endless? ... [error] Failed to query power-profiles-daemon via dbus
If anyone has suggestions would love to hear them, included is basically everything I have installed so far because I did a chroot install for LUKS.
- Waybar - base-devel - base-system - chrony - cryptsetup - elogind - firefox - font-firacode - fuzzel - git - grub-x86_64-efi - intel-video-accel - kitty - lightdm - lvm2-2 - mako - mesa-dri - mesa-vulkan-intel - mutter - niri - obfs4proxy - openssl-devel - pipewire - plymouth - swaybg - swaylock - tor - vulkan-loader - wget - xorg-minimal - xwayland-satellite
EDIT: Found a solution by editing /usr/share/wayland-sessions/niri.desktop
and changing
Exec=/usr/bin/niri --session
to
Exec=dbus-run-session /usr/bin/niri --session
So the idea is to launch waybar with your window manager (for example, sway) by configuring the windowmanager to run waybar when it starts.
As for the other errors, it looks like you might have some waybar plugins running that have dependencies on uninstalled packages. If you share your waybar config I (or someone else on this post) might be able to help further.
Thank you! I have in my niri config:
My config is is just the default given https://github.com/YaLTeR/niri/blob/main/resources/default-config.kdl
Might you know where there may be logs I can check for the service?