From: Mark Wooding Date: Sun, 3 Jul 2022 13:50:03 +0000 (+0100) Subject: dot/shell-rc: Enable the `wakey' machinery by default, when it will work. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/0a469e47aae261200c3e3fe0701d37f7970bf3ad dot/shell-rc: Enable the `wakey' machinery by default, when it will work. --- diff --git a/dot/shell-rc b/dot/shell-rc index b65f63e..b8bfb3d 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -473,6 +473,13 @@ case $(id -u) in ;; esac +## Install wakeup machinery for long-running programs. +case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${__mdw_preexec_hook+t} in + t,t,t,t) + if [ -t 0 ] && __mdw_programp notify-send; then . $HOME/bin/wakey.sh; fi + ;; +esac + ## Run any local hooks. __mdw_source_if_exists "$HOME/.shell-local"