From 3e91dfe25d8d1606690eddcc696c9479d2d1a8fe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Jun 2025 20:10:16 -0400 Subject: [PATCH] Notify of changed theme --- bin/omarchy-theme-next | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/omarchy-theme-next b/bin/omarchy-theme-next index d40cb8b..e71849c 100755 --- a/bin/omarchy-theme-next +++ b/bin/omarchy-theme-next @@ -42,3 +42,12 @@ pkill swaync && setsid swaync # Set new background ln -nsf $(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) "$HOME/.config/omarchy/current/background" pkill -x swaybg && setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill + +# Wait for swaync to get started properly again +while ! pgrep -x swaync >/dev/null; do + sleep 0.05 +done +sleep 0.5 + +# Notify of the new theme +notify-send "Theme changed to $NEW_THEME_NAME" -t 2000 -e