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-warn
diff --git a/home/.xlaunch.d/99-dmesg-notifier-warn
b/home/.xlaunch.d/99-dmesg-notifier-warn
new file mode 100755
(executable)
index 0000000..
a021734
--- /dev/null
+++ b/
home/.xlaunch.d/99-dmesg-notifier-warn
@@ -0,0
+1,10
@@
+#! /bin/bash
+
+set -e
+
+sleep 3 # wait for dunst to hopefully restart
+sudo dmesg --follow --level=warn --since=now \
+| while read line
+ do
+ notify-send -u low 'dmesg warning' "$line"
+ done
This page took
0.042529 seconds
and
4
git commands to generate.