X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/d5bfd6cb0d798fb4b3f5f38a5355370822f218a8..b2f281d78c0fa6ff0a92901a603098df6a5e57b2:/.mutt/bgrun?ds=inline diff --git a/.mutt/bgrun b/.mutt/bgrun index 836e836..c19920f 100755 --- a/.mutt/bgrun +++ b/.mutt/bgrun @@ -77,7 +77,7 @@ notify_output() { } guess_extension() { - python -c "import mimetypes; print(mimetypes.guess_extension('$1'))" + python3 -c "import mimetypes; print(mimetypes.guess_extension('$1'))" } get_file() { @@ -138,7 +138,7 @@ case "$SELF" in ( ts=$(($(date +%s) + $DELAY)) launch_viewer "$FILE" "$MIMETYPE" - while [ $(date +%s) -lt $ts ]; do sleep $DELAY; done + while [ $(date +%s) -lt $ts ]; do sleep 1; done cleanup ) & trap - 1 2 3 4 5 6 7 8 10 11 12 13 14 15 @@ -171,7 +171,7 @@ case "$SELF" in (launch_viewer "$FILE" "$MIMETYPE") & ( while [ $(($(stat -c%X "$FILE") + $DELAY)) -gt $(date +%s) ]; do - sleep $DELAY + sleep 1 done cleanup ) &