watch swaync config

This commit is contained in:
Benjamin Palko 2024-04-06 13:51:23 -05:00
parent 320ef09010
commit 0f91f2cf19
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# Notification Daemon # Notification Daemon
exec-once = swaync exec-once = bash ~/.config/hypr/scripts/start-swaync.sh
# Idle Daemon # Idle Daemon
exec-once = hypridle exec-once = hypridle
# Status-bar # Status-bar

View file

@ -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