# pushover - Send push notifications to your mobile device # # To use this script you'll need to register for an account at pushover.net: # # https://pushover.net/login # # FIXME: Describe how to configure this script # # Copyright (c) 2014 Zach "skullY" White # # Configuration - Set your user key and any other options here # @pushover_app_token="ADDME"; @pushover_user_key="ADDME"; @pushover_device=""; @pushover_sound=""; # You shouldn't have to change these. @pushover_api_url="https://api.pushover.net/1/messages.json"; @pushover_curl_cmd="curl -s --form-string 'user=${pushover_user_key}' --form-string 'token=${pushover_app_token}'"; if (pushover_device) { @pushover_curl_cmd="${pushover_curl_cmd} --form-string 'device=${pushover_device}'"; }; if (pushover_sound) { @pushover_curl_cmd="${pushover_curl_cmd} --form-string 'sound=${pushover_sound}'"; }; # # Aliases # alias pushover (message) { # Send a message to pushover xecho -b pushover: $message; }; xecho -b Loaded pushover.irc.;