f5409c2d4da21c5288131ea9dd87118681d24284
[khome.git] / home / .xlaunch.d / 99-dmesg-notifier-warn
1 #! /bin/bash
2
3 set -e
4
5 DIR="$HOME/var/log/dmesg"
6 FILE="$DIR/warning.log"
7
8 mkdir -p "$DIR"
9 sleep 3 # wait for dunst to hopefully restart
10 sudo dmesg --follow --level=warn --since=now --ctime \
11 | while read -r line
12 do
13 notify-send -u low 'dmesg warning' "$line"
14 echo "$line" >> "$FILE"
15 done
This page took 0.066069 seconds and 3 git commands to generate.