follow_dmesg dmesg notify

#!/bin/bash
                                                                                                                                
tail  -f /var/log/messages | while read line; do notify-send "System Message" "$line" -t 1000 ; done