#!/bin/sh srv=$(cat $HOME/vnc_servers.txt|$PICKER -p 'VNC:'|awk '{print $2}') [ -z "$srv" ] && { notify-send "no choice" exit 1 } exec vncviewer $srv