OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
omarchy-theming high common DISPUTE

Bring Waybar back after it silently dies and stays dead

omarchyomarchy-3archhyprlandwaylandlaptopdesktop
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

Problem and unit are real: Arch's waybar package ships /usr/lib/systemd/user/waybar.service, and upstream resources/waybar.service.in confirms ExecStart, ExecReload=kill -SIGUSR2 $MAINPID and Restart=on-failure exactly as claimed. But the fix is incomplete and order-dependent: omarchy toggle waybar is the VERBLESS toggle, so if the flag is already set it clears it (same inversion trap as the bar record). Enabling the unit without first killing the running transient uwsm scope leaves two waybars. Added explicit flag-setting, pkill, ordering, and a way to list real battery names.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

systemctl --user enable waybar.service plus the waybar-off toggle changes who owns the Waybar lifecycle. If you later clear the waybar-off toggle without disabling the unit you get two Waybars stacked on top of each other.

Symptom

On Omarchy 3.x the Waybar top bar disappears mid-session and never comes back on its own. coredumpctl shows Signal: 11 (SEGV) for app-Hyprland-waybar-<hash>.scope with the stack in /usr/lib/libglib-2.0.so.0.8800.1 (deleted), or SIGABRT with raise -> abort -> std::terminate -> __cxa_throw. Waybar logs also show Gtk-CRITICAL: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed.

Cause

Two layers. First, Omarchy launches Waybar as a transient UWSM app scope (exec-once = ! omarchy-toggle-enabled waybar-off && uwsm-app -- waybar in default/hypr/autostart.conf, and omarchy-restart-waybar does pkill -9 -x waybar; setsid uwsm-app -- waybar &), not through the packaged waybar.service which carries Restart=on-failure. So one crash leaves the bar down permanently. Second, the crash itself: a long-running Waybar keeps mapping deleted GLib/GIO objects after pacman -Syu upgrades glib2 underneath it, and separately the battery/udev refresh worker throws an uncaught exception on machines with extra power-supply devices (Logitech HID batteries, USB-C PD) when the config does not pin a specific battery.

Fix

Immediate recovery:


omarchy restart waybar

Switch to the packaged supervised unit. Do this in order, or you end up with two bars:


# 1. Check the flag state first - do NOT blind-toggle
omarchy-toggle-enabled waybar-off && echo "already off" || echo "currently on"

# 2. Set it explicitly (omarchy toggle waybar with no verb would UNSET it if already set)
omarchy-toggle waybar-off on

# 3. Kill the transient uwsm-app scope that autostart.conf started
pkill -x waybar

# 4. Now enable + start the packaged unit
systemctl --user enable --now waybar.service
systemctl --user status waybar.service

Verified against upstream resources/waybar.service.in and the Arch package file list: the unit is /usr/lib/systemd/user/waybar.service with ExecStart=/usr/bin/waybar, ExecReload=kill -SIGUSR2 $MAINPID, Restart=on-failure, WantedBy=graphical-session.target. Restart=on-failure does cover death by SIGSEGV/SIGABRT.

Pin the battery in ~/.config/waybar/config.jsonc. List the real names first rather than assuming BAT0:


ls /sys/class/power_supply/

"battery": { "bat": "BAT1" }

If you also see the GTK accel-group criticals, remove "group/tray-expander" from the modules-right array.

Apply config edits without a full restart:


systemctl --user reload waybar.service

Log out and back in after any glib2 upgrade so Waybar is not left holding deleted mappings.

Omarchy 3.x only. Omarchy 4 replaced Waybar with Quickshell and has no waybar process at all.

Verify

systemctl --user status waybar.service shows active (running). Kill it with pkill -9 -x waybar and the bar reappears within a second or two on its own. coredumpctl list waybar records no new dumps over the following days.

Sources

waybar-crashes-and-never-restarts-uwsm-scope