nixos/config/ags-v1/launch-ags.sh
2024-11-16 00:04:30 +04:00

12 lines
192 B
Bash
Executable file

#!/bin/sh
CONFIG_FILES="/home/sako/.config/ags"
trap "killall ags" EXIT
while true; do
ags &
export APP_PID=$!
inotifywait -e create,modify $CONFIG_FILES
kill $APP_PID
done