home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Manage xlaunch scripts as a tmux session, a la pista
[khome.git]
/
home
/
.xlaunch.d
/
99-dmesg-notifier-error
diff --git a/home/.xlaunch.d/99-dmesg-notifier-error
b/home/.xlaunch.d/99-dmesg-notifier-error
new file mode 100755
(executable)
index 0000000..
40a2d10
--- /dev/null
+++ b/
home/.xlaunch.d/99-dmesg-notifier-error
@@ -0,0
+1,10
@@
+#! /bin/bash
+
+set -e
+
+sleep 3 # wait for dunst to hopefully restart
+sudo dmesg --follow --level=emerg,alert,crit,err --since=now \
+| while read line
+ do
+ notify-send -u critical 'dmesg error' "$line"
+ done
This page took
0.02872 seconds
and
4
git commands to generate.