rendered paste body#!/bin/bash############ This will check for a running proxy connection and display a notification# tray display if there is an ssh proxy available to use.ps wax | grep "ssh -fN SOCKS" | grep -v "grep ssh -fN SOCKS" &>/dev/nullif [[ $? -ne 0 ]] then /usr/bin/notify-send -i gtk-dialog-info -t 5000 \ -- "no tunnel available" exit 1 else ps wax | grep "zenity --notification" | \ grep -v "grep zenity --notification" &>/dev/null if [[ $? -ne 0 ]] then zenity --notification \ --window-icon=/usr/share/pixmaps/ssh-askpass-gnome.png \ --text "Tunnel is running and available" & fiexit 1fi