[download]

local/bin/notify

   1 #!/bin/bash
   2 
   3 f=~/.cache/notify.svg
   4 
   5 source ~/.theme/colors.sh
   6 color=$(printf '%s\n' $color{1..7} $color{9..15} | shuf -n 1)
   7 color=$foreground
   8 
   9 notify-send -a notify-$1 -i $f -- "${1^}" "$(
  10     $* | head | awk '{ print substr($0, 0, 60) }'
  11     printf '<svg width="22" height="22"><text font-family="Nerdfont"
  12     y="18" font-size="20" fill="%s">%s</text></svg>' $color $(icon $1) > $f
  13 )" &