A webmail client. Forked from https://git.sr.ht/~migadu/alps
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
331 B

  1. #!/bin/sh
  2. # Watch themes and plugins files, automatically reload alps on change.
  3. events=modify,create,delete,move
  4. targets="themes/ plugins/"
  5. inotifywait -e "$events" -m -r $targets | while read line; do
  6. jobs >/dev/null # Reap status of any terminated job
  7. if [ -z "$(jobs)" ]; then
  8. (sleep 0.5 && pkill -USR1 alps) &
  9. fi
  10. done