From 0f91f2cf197d80793bb266875ea621df5096706f Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sat, 6 Apr 2024 13:51:23 -0500 Subject: [PATCH] watch swaync config --- hypr/config/startup.conf | 2 +- hypr/scripts/start-swaync.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 hypr/scripts/start-swaync.sh 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