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
@@ -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.