X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xlaunch.d%2F99-dmesg-notifier-error;fp=home%2F.xlaunch.d%2F99-dmesg-notifier-error;h=40a2d104e2a913e3fd5048de1df556bc521e786f;hb=6db098476f8d99b62a990c6d3ff27c29562145b9;hp=0000000000000000000000000000000000000000;hpb=a92bc6c5e2ed8e25536158b9048692c0cbcb7d7f;p=khome.git diff --git a/home/.xlaunch.d/99-dmesg-notifier-error b/home/.xlaunch.d/99-dmesg-notifier-error new file mode 100755 index 0000000..40a2d10 --- /dev/null +++ b/home/.xlaunch.d/99-dmesg-notifier-error @@ -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