yadm-config/.config/theming/watch.sh
2025-05-20 20:42:47 +02:00

12 lines
352 B
Bash
Executable file

#!/bin/env sh
setupWatchers() {
inotifywait -e modify,create,delete -m -r "$HOME/.config/theming/applications" &
inotifywait -e modify,create,delete -m -r "$HOME/.config/theming/library" &
}
setupWatchers | while read line; do
echo "Recomiling..."
$HOME/.config/theming/compile.sh >/dev/null
$HOME/.config/theming/update.sh >/dev/null
done