User Tools

Site Tools


linux:notifications

This is an old revision of the document!


VNC Notifications

VNC notifications example:

#!/bin/bash

alertme() {
    zenity --notify "Big brother watching"
}

while :
do    
  netstat -a | grep vnc | grep ESTABLISHED && alertme
  sleep 60 #wait 60 seconds
done

Notify-Send script with more options than zenity:

https://github.com/vlevit/notify-send.sh/blob/master/notify-send.sh

./notify-send.sh --expire-time=-1 --icon=/usr/share/icons/Humanity/apps/24/application-x-vnc.svg Subject Message
linux/notifications.1595014002.txt.gz · Last modified: 2023/05/29 11:53 (external edit)