Skip to content

Instantly share code, notes, and snippets.

@valvallow
Created February 1, 2012 14:07
Show Gist options
  • Save valvallow/1717129 to your computer and use it in GitHub Desktop.
Save valvallow/1717129 to your computer and use it in GitHub Desktop.
notify-send for windows
#!/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