YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
2.98k stars 88 forks source link

waybar not shown #326

Closed bobblkabb closed 2 months ago

bobblkabb commented 2 months ago

Waybar doesn't appear. debug log:

[2024-05-02 21:11:58.592] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-05-02 21:11:58.592] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-05-02 21:11:58.592] [debug] Try expanding: $HOME/.config/waybar/config
[2024-05-02 21:11:58.592] [debug] Found config file: $HOME/.config/waybar/config
[2024-05-02 21:11:58.592] [info] Using configuration file /home/mypc/.config/waybar/config
[2024-05-02 21:12:23.619] [error] Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached

Same when starting with /etc/xdg/waybar/config.jsonc This is my own config: waybar-config.txt

System Information

bobblkabb commented 2 months ago

Output "HDMI-A-1" (27_8_30 - LG ULTRAWIDE - HDMI-A-1)

  Current mode: 3440x1440 @ 49.987 Hz
  Variable refresh rate: not supported
  Physical size: 800x340 mm
  Logical position: 0, 0
  Logical size: 3440x1440
  Scale: 1
  Transform: normal

niri-config.txt

YaLTeR commented 2 months ago

Hey, uhh, maybe it doesn't like the hyprland module or some other module?

bobblkabb commented 2 months ago

Commented modules-right and modules-center, so nothing hyprlandy remains. Still

YaLTeR commented 2 months ago

Maybe the portals aren't started properly? How are you starting niri?

bobblkabb commented 2 months ago

Now as you mention. I use tuigreet/greetd. On my other machine it's started directly via tty. tuigreet config.toml:

[terminal]
vt = 1

[default-session]
command = "tuigreet --cmd niri"
user = "myuser"
YaLTeR commented 2 months ago

If you use systemd, make it run niri-session. Otherwise make sure a dbus session is started and desktop portals are started

bobblkabb commented 2 months ago

I tried: command = "tuigreet --cmd dbus-run-session niri" without success when starting waybar from shell: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus

And put this into config.kdl:

spawn-at-startup "xdg-desktop-portal"
spawn-at-startup "xdg-desktop-portal-wlr"
spawn-at-startup "xdg-desktop-portal-gnome"

How do I make systemd run niri-session?

YaLTeR commented 2 months ago

Does tuigreet --cmd niri-session maybe work?

bobblkabb commented 2 months ago

That's it! Thank you very much for the great support!

YaLTeR commented 2 months ago

Nice!