Skip to content

Instantly share code, notes, and snippets.

@satishgoda
Forked from valvallow/notify-send.sh
Created March 6, 2014 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satishgoda/9383357 to your computer and use it in GitHub Desktop.
Save satishgoda/9383357 to your computer and use it in GitHub Desktop.
#!/bin/sh
VALUE_ICON=`cygpath -d "$HOME/pict/terminal.png"`
VALUE_TITLE="terminal"
VALUE_MESSAGE="Ha!!"
while getopts hi:t:m: OPT
do
case $OPT in
"i" ) FLG_ICON="TRUE" ; VALUE_ICON="$OPTARG" ;;
"t" ) FLG_TITLE="TRUE" ; VALUE_TITLE="$OPTARG" ;;
"m" ) FLG_MESSAGE="TRUE" ; VALUE_MESSAGE="$OPTARG" ;;
"h" ) echo "Usage: notify-send [options of 'growl for windows' ...] message" ; exit 0 ;;
esac
done
/cygdrive/c/Program\ Files\ \(x86\)/Growl\ for\ Windows/growlnotify.com /i:"$VALUE_ICON" /t:"$VALUE_TITLE" "$VALUE_MESSAGE"
#!/bin/sh
PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/sbin:"$HOME/bin"
NOW=`date +"%Y-%m-%d\n%H:%M:%S"`
TITLE="growl from cron"
notify-send -t"$TITLE" -m"$NOW"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment