diff --git a/hypr/config/startup.conf b/hypr/config/startup.conf index ee7e678..7e1a864 100644 --- a/hypr/config/startup.conf +++ b/hypr/config/startup.conf @@ -1,5 +1,5 @@ # Notification Daemon -exec-once = swaync +exec-once = bash ~/.config/hypr/scripts/start-swaync.sh # Idle Daemon exec-once = hypridle # Status-bar diff --git a/hypr/scripts/start-swaync.sh b/hypr/scripts/start-swaync.sh new file mode 100644 index 0000000..e90446d --- /dev/null +++ b/hypr/scripts/start-swaync.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +CONFIG_FILES="$HOME/.config/swaync/ $HOME/.cache/wal/" + +trap "killall swaync" EXIT +swaync & + +while true; do + inotifywait -e create,modify -r $CONFIG_FILES + swaync-client -R & swaync-client -rs +done