Waybar exits when monitor is turned off
$ waybar -l debug
[2024-08-22 17:29:59.547] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-08-22 17:29:59.547] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-08-22 17:29:59.547] [debug] Try expanding: $HOME/.config/waybar/config
[2024-08-22 17:29:59.547] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2024-08-22 17:29:59.547] [debug] Found config file: $HOME/.config/waybar/config.jsonc
[2024-08-22 17:29:59.547] [info] Using configuration file /home/lucas/.config/waybar/config.jsonc
[2024-08-22 17:29:59.549] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2024-08-22 17:29:59.549] [debug] Try expanding: $HOME/.config/waybar/style.css
[2024-08-22 17:29:59.549] [debug] Found config file: $HOME/.config/waybar/style.css
[2024-08-22 17:29:59.549] [info] Using CSS file /home/lucas/.config/waybar/style.css
[2024-08-22 17:29:59.553] [debug] Output detection done: HDMI-A-1 (LG Electronics LG HDR WFHD 0x00069CC3)
[2024-08-22 17:29:59.554] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-08-22 17:29:59.554] [info] Hyprland IPC starting
[2024-08-22 17:29:59.555] [debug] Initializing workspaces
[2024-08-22 17:29:59.555] [debug] Initializing persistent workspaces
[2024-08-22 17:29:59.555] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-08-22 17:29:59.560] [debug] network: new default route via 192.168.15.1 on if2 metric 100
[2024-08-22 17:29:59.560] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:29:59.560] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:29:59.580] [debug] Cmd exited with code 0
[2024-08-22 17:29:59.580] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:29:59.580] [debug] GTK widget tree:
window#waybar.background.top.HDMI-A-1..mode-default:dir(ltr)
decoration:dir(ltr)
box.horizontal:dir(ltr)
box.horizontal.modules-left:dir(ltr)
widget:dir(ltr)
box#workspaces.horizontal.module:dir(ltr)
widget:dir(ltr)
box#window.horizontal.module:dir(ltr)
image:dir(ltr)
label:dir(ltr)
box.horizontal.modules-center:dir(ltr)
widget:dir(ltr)
label#custom-media.module:dir(ltr)
box.horizontal.modules-right:dir(ltr)
widget:dir(ltr)
label#idle_inhibitor.module:dir(ltr)
widget:dir(ltr)
label#network.module:dir(ltr)
widget:dir(ltr)
label#clock.module:dir(ltr)
widget:dir(ltr)
box#tray.horizontal.module:dir(ltr)
[2024-08-22 17:29:59.581] [debug] Creating workspace 1
[2024-08-22 17:29:59.581] [debug] Creating workspace 2
[2024-08-22 17:29:59.581] [debug] Creating workspace 3
[2024-08-22 17:29:59.582] [debug] Creating workspace 4
[2024-08-22 17:29:59.598] [warning] Requested height: 15 is less than the minimum height: 24 required by the modules
[2024-08-22 17:29:59.598] [info] Bar configured (width: 2560, height: 24) for output: HDMI-A-1
(waybar:948065): Gtk-CRITICAL **: 17:29:59.604: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.605: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.606: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.606: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(waybar:948065): Gtk-CRITICAL **: 17:29:59.607: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[2024-08-22 17:29:59.626] [debug] hyprland IPC received openlayer>>waybar
[2024-08-22 17:30:00.608] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:00.608] [debug] Cmd exited with code 0
[2024-08-22 17:30:01.634] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:01.634] [debug] Cmd exited with code 0
[2024-08-22 17:30:02.661] [debug] Cmd exited with code 0
[2024-08-22 17:30:02.661] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:03.689] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:03.689] [debug] Cmd exited with code 0
[2024-08-22 17:30:04.717] [debug] Cmd exited with code 0
[2024-08-22 17:30:04.717] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:05.743] [debug] Cmd exited with code 0
[2024-08-22 17:30:05.743] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:06.770] [debug] Received SIGCHLD in signalThread
[2024-08-22 17:30:06.770] [debug] Cmd exited with code 0
[2024-08-22 17:30:06.957] [debug] hyprland IPC received monitorremoved>>HDMI-A-1
[2024-08-22 17:30:06.958] [debug] Output removed: LG Electronics LG HDR WFHD
[2024-08-22 17:30:06.958] [debug] hyprland IPC received createworkspace>>5
[2024-08-22 17:30:06.958] [debug] Workspace created: 5
[2024-08-22 17:30:06.958] [debug] Output detection done: FALLBACK ()
[2024-08-22 17:30:06.958] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-08-22 17:30:06.959] [error] Monitor 'FALLBACK' does not have an ID? Using 0
[2024-08-22 17:30:06.959] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Error parsing JSON: * Line 1, Column 1
Syntax error: value, object or array expected.
[2024-08-22 17:30:06.959] [warning] module hyprland/window: Disabling module "hyprland/window", Error parsing JSON: * Line 1, Column 1
Syntax error: value, object or array expected.
[2024-08-22 17:30:06.960] [debug] hyprland IPC received createworkspacev2>>5,5
[2024-08-22 17:30:06.961] [debug] network: new default route via 192.168.15.1 on if2 metric 100
[2024-08-22 17:30:06.961] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:30:06.961] [debug] network: enp8s0, new addr 192.168.15.53/24
[2024-08-22 17:30:06.962] [debug] hyprland IPC received monitoradded>>FALLBACK
[2024-08-22 17:30:06.962] [debug] GTK widget tree:
window#waybar.background.top..mode-default.FALLBACK:dir(ltr)
decoration:dir(ltr)
box.horizontal:dir(ltr)
box.horizontal.modules-left:dir(ltr)
box.horizontal.modules-center:dir(ltr)
widget:dir(ltr)
label#custom-media.module:dir(ltr)
box.horizontal.modules-right:dir(ltr)
widget:dir(ltr)
label#idle_inhibitor.module:dir(ltr)
widget:dir(ltr)
label#network.module:dir(ltr)
widget:dir(ltr)
label#clock.module:dir(ltr)
widget:dir(ltr)
box#tray.horizontal.module:dir(ltr)
[2024-08-22 17:30:06.963] [debug] hyprland IPC received monitoraddedv2>>18446744073709551615,FALLBACK,
[2024-08-22 17:30:06.964] [debug] hyprland IPC received focusedmon>>FALLBACK,5
[2024-08-22 17:30:06.965] [debug] hyprland IPC received closelayer>>waybar
** (waybar:948306): CRITICAL **: 17:30:06.967: static void Glib::DispatchNotifier::unreference_instance(Glib::DispatchNotifier*, const Glib::Dispatcher*): assertion 'instance == notifier' failed
[2024-08-22 17:30:06.968] [info] Bar removed from output: HDMI-A-1
[2024-08-22 17:30:06.969] [info] Bar configured (width: 299, height: 15) for output: FALLBACK
Gdk-Message: 17:30:06.970: Error 71 (Protocol error) dispatching to Wayland display.
exit code 1
happens every time my monitor turns off or sleeps
I'm experiencing the same issue when unplugging the monitor (same errors in log)
Same here
here also, I have a kvm switch and when I switch to my other computer and go back, I have to start waybar again. Now this doesn't always happen but 90% times it does
Same here. Also, Steam restarts.
I have the same issue it seems like there is something goes wrong with the output configuration after monitor goes to sleep or shuts down. Adding "output": "HDMI-A-2" to the config "fixed" the issue.
The workaround with "output": "HDMI-A-1" seems to be working for me.
Yes. Helped here also. To be more precise, In my case I am adding name of monitor from hyprland config.