Alexays / Waybar

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

Hyprland with waybar do not work well #2775

Open Haze-sh opened 10 months ago

Haze-sh commented 10 months ago

When I try to open waybar it doesn't get the Hyprland IPC and thus workspaces don't work

When I run waybar:

[2023-12-27 23:08:07.428] [info] Hyprland IPC starting
[2023-12-27 23:08:07.524] [error] Hyprland IPC: Couldn't get host (2)

OS: Artix linux Version: waybar 0.9.24

Can't try the waybar-git version from AUR because it needs systemd dependency

What could be the problem?

khaneliman commented 10 months ago

Hyprland works fine with the current version of Waybar. How did you build and install it?

Haze-sh commented 10 months ago

I installed it from pacman, specifically the "world" artix repo

5p4r74cu5 commented 9 months ago

Running perfectly for me, I'm on Arch though...

cheloveg commented 9 months ago

I managed to compile the waybar-git package from AUR on Artix by removing the systemd dependency from meson.build, but it still takes 36 second for bar to start (from first log messages to "Bar configured"), and after that all of the features related to Hyprland (clicking to change workspace or highlighting current workspace) lag for a few seconds. Everything is fine after removing hyprland/modules from config. Attaching the log below, please respond if you need any additional info:

[2024-01-20 22:26:05.281] [info] Using configuration file /home/cheloveg/.config/waybar/config
[2024-01-20 22:26:05.283] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-01-20 22:26:05.283] [info] Using CSS file /home/cheloveg/.config/waybar/style.css
[2024-01-20 22:26:05.290] [warning] Mapping is not an object
[2024-01-20 22:26:05.290] [info] Hyprland IPC starting

(waybar:25475): GLib-GObject-CRITICAL **: 22:26:20.521: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '73'

(waybar:25475): GLib-GObject-CRITICAL **: 22:26:20.521: ../glib/gobject/gsignal.c:2088: type 'GtkWindow' is already overridden for signal id '72'
[2024-01-20 22:26:20.521] [warning] Mapping is not an object
[2024-01-20 22:26:50.971] [info] Bar configured (width: 1920, height: 43) for output: HDMI-A-1
[2024-01-20 22:26:50.971] [info] Bar configured (width: 1920, height: 43) for output: eDP-1
^C[2024-01-20 22:27:24.318] [info] Quitting.

OS: Artix Linux Version: 6e12f81 from git (also reproducible on v0.9.24)

khaneliman commented 9 months ago

What does your config look like?

LegitSt0ne commented 7 months ago

Turn on the internet, had same issue when internet was off