Stop using SIGUSR1 with Waybar to prevent stacking

Closes #873
This commit is contained in:
David Heinemeier Hansson 2025-08-22 14:37:33 +02:00
parent cf556b2da2
commit b2161f1f31
2 changed files with 8 additions and 1 deletions

View File

@ -120,7 +120,7 @@ show_toggle_menu() {
*Screensaver*) omarchy-toggle-screensaver ;;
*Nightlight*) omarchy-toggle-nightlight ;;
*Idle*) omarchy-toggle-idle ;;
*Bar*) pkill -SIGUSR1 waybar ;;
*Bar*) omarchy-toggle-waybar ;;
*) show_main_menu ;;
esac
}

7
bin/omarchy-toggle-waybar Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if pgrep -x waybar >/dev/null; then
pkill -x waybar
else
uwsm app -- waybar >/dev/null 2>&1 &
fi