nixos/config/ags/launch-ags.sh
2024-08-05 17:40:10 +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