aboutsummaryrefslogtreecommitdiffstats
path: root/bin/log_notifications.sh
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-03 12:52:03 +0200
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-03 12:52:03 +0200
commite33ad4f128fb8fef2119cf2c71371eaf9c19bd29 (patch)
tree1fe625b20799889724aad507b8bac0a77258b9ca /bin/log_notifications.sh
downloaddotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.tar.gz
dotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.tar.bz2
dotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.zip
Initial setup with basic tools: vim/dein, tmux, st, tup, X
Diffstat (limited to 'bin/log_notifications.sh')
-rwxr-xr-xbin/log_notifications.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/log_notifications.sh b/bin/log_notifications.sh
new file mode 100755
index 0000000..2b187db
--- /dev/null
+++ b/bin/log_notifications.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo "${@}" \
+ | sed -r 's/IT Message from (\w+)\s*(.+) emblem-important CRITICAL/\1> \2/' \
+ >> "/tmp/notifications.log"