diff options
Diffstat (limited to 'hooks')
| -rwxr-xr-x | hooks/on_start | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hooks/on_start b/hooks/on_start index fa38f7c..95b9377 100755 --- a/hooks/on_start +++ b/hooks/on_start @@ -30,7 +30,12 @@ fi # --- focus mode ---------------------------------------------------------- # Countdowns only: a stopwatch has no end, and silencing notifications -# indefinitely is not what you want. If the process is killed with -9 +# indefinitely is not what you want. To run this ad-hoc rather than on +# every countdown, gate it -- on an env var, on a +tag in $3, or on the +# duration in $2. See "Running hooks selectively" in timer(1). Gate here +# only, never in on_done/on_quit: those must always restore. +# +# [ -n "$TTYM_FOCUS" ] || exit 0 If the process is killed with -9 # nothing restores these; recover with `dunstctl set-paused false`. if [ "$mode" = countdown ]; then command -v dunstctl > /dev/null 2>&1 && dunstctl set-paused true |
