diff --git a/config/ags/launch-ags.sh b/config/ags/launch-ags.sh index 8fb9621d..1079a288 100755 --- a/config/ags/launch-ags.sh +++ b/config/ags/launch-ags.sh @@ -1,6 +1,12 @@ #!/bin/sh -pkill ags +CONFIG_FILES="/home/sako/.config/ags" -ags & - +trap "killall ags" EXIT + +while true; do + ags & + export APP_PID=$! + inotifywait -e create,modify $CONFIG_FILES + kill $APP_PID +done