scripts

custom scripts and utils
git clone git://git.pyratebeard.net/scripts.git
Log | Files | Refs | README

wat (340B)


      1 #!/bin/sh
      2 # ┐ ┬┬─┐┌┐┐
      3 # ││││─┤ │
      4 # └┴┆┘ ┆ ┆
      5 # dumb wrapper around
      6 # at(1) for use with menu
      7 
      8 test $1 || echo "wat <time> <level> <message>" ; exit 1
      9 wat_time="$1"
     10 wat_level="$2"
     11 wat_msg="$3"
     12 
     13 notify_cmd="/usr/bin/notify-send"
     14 
     15 echo "${notify_cmd} -u '${wat_level}' '${wat_msg}'" | at "${wat_time}"