circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

circo_notify.sh (307B)


      1 #!/bin/sh
      2 # Sound from https://notificationsounds.com/
      3 
      4 export DISPLAY=:0
      5 
      6 pwd="$(dirname "$0")"
      7 from=$1
      8 to=$2
      9 txt=$3
     10 [ "$from" = "$to" ] && to="private"
     11 
     12 btn="Read"
     13 
     14 mpv "$pwd/circo_notify.ogg" >/dev/null 2>&1 &
     15 xmessage -geom 250x100 -button "$btn" -default "$btn" -timeout 3 -center "$from in $to
     16 
     17 $txt"