#!/bin/sh

# https://www.commandlinefu.com/commands/view/8821/show-each-new-entry-in-system-messages-as-a-popup
sudo tail -n0 -f /var/log/messages | while read -r line; do
    notify-send --urgency=low "System Message" "$line"
done
