chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3f77c
)
dot/shell-rc: Enable the `wakey' machinery by default, when it will work.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 3 Jul 2022 13:50:03 +0000
(14:50 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 3 Jul 2022 13:50:03 +0000
(14:50 +0100)
dot/shell-rc
patch
|
blob
|
blame
|
history
diff --git
a/dot/shell-rc
b/dot/shell-rc
index b65f63e47b5734a233dd2c8632ee8d829b01c11d..b8bfb3d77a9e195ed5444f6286246a8cd7099955 100644
(file)
--- 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"