home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch experiment README to .md
[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
index
a021734
..
dc1005a
100755
(executable)
--- a/
home/.xlaunch.d/99-dmesg-notifier-warn
+++ b/
home/.xlaunch.d/99-dmesg-notifier-warn
@@
-2,9
+2,15
@@
set -e
set -e
+DIR="$HOME/var/log/dmesg"
+FILE="$DIR/warning.log"
+
+mkdir -p "$DIR"
sleep 3 # wait for dunst to hopefully restart
sleep 3 # wait for dunst to hopefully restart
-sudo dmesg --follow --level=warn --since=now \
-| while read line
+# TODO File with ignore patterns
+sudo dmesg --follow --level=warn --since=now --ctime \
+| while read -r line
do
notify-send -u low 'dmesg warning' "$line"
do
notify-send -u low 'dmesg warning' "$line"
+ echo "$line" >> "$FILE"
done
done
This page took
0.025712 seconds
and
4
git commands to generate.