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