~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1fc65
)
bin/wakey.sh: Include hostname in notification if SSH is implicated.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 3 Jul 2022 14:05:11 +0000
(15:05 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 3 Jul 2022 14:09:01 +0000
(15:09 +0100)
bin/wakey.sh
patch
|
blob
|
blame
|
history
diff --git
a/bin/wakey.sh
b/bin/wakey.sh
index
373e56c
..
208dfc8
100644
(file)
--- a/
bin/wakey.sh
+++ b/
bin/wakey.sh
@@
-55,6
+55,7
@@
__wakey_precmd () {
*) icon=dialog-warning head="Command FAILED (rc = $rc)" ;;
esac
cmd=${__wakey_cmd//&/&}; cmd=${cmd//</<}; cmd=${cmd//>/>}
+ case ${SSH_CONNECTION+t} in t) head="[$HOST] $head" ;; esac
notify-send -c Wakey -i $icon -t 5000 "$head" "$cmd"
;;
esac