while true ; do sudo iwlist scan | grep "key:off" && dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Open networks are available" uint32:0 string:"OK" ; sleep 120 ; done
while sleep 120 ; do sudo iwlist scan | grep "key:off" && dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Open networks are available" uint32:0 string:"OK" ; done
while true ; do sudo ifconfig wlan0 up && sudo iwlist scan | grep "key:off" && dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Open networks are available" uint32:0 string:"OK" ; sleep 120 ; done
while sleep 120 ; do sudo ifconfig wlan0 up && sudo iwlist scan | grep "key:off" && dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Open networks are available" uint32:0 string:"OK" ; done
while true ; do iwlist scan | grep "key:off" && run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Open networks are available" uint32:0 string:"OK" ; sleep 2000 ; done