[download]

local/bin/picker

   1 #!/bin/bash
   2 
   3 f=~/.cache/picker.svg
   4 s=$(gpick -so | tr A-Z a-z)
   5 
   6 [[ $s ]] || exit
   7 (( 16$s >= 16#777776 )) && c=\#000 || c=\#fff
   8 
   9 printf '<svg width="22" height="22"><text font-family="Nerdfont"
  10 y="18" font-size="20" fill="%s">%s</text></svg>' $c $(icon picker) > $f
  11 
  12 echo $s
  13 echo -n $s | xsel -ib
  14 
  15 notify-send -a picker -i $f -h string:bgcolor:$s -h string:fgcolor:$c -- Picker $s