#!/bin/bash PATH_TO_GTD=~/.bin/gtd task=`Xdialog --stdout --inputbox "Enter task" 10 60` if [ ! -z "$task" ] ; then ${PATH_TO_GTD} add $task fi