colorhandler (250B) - raw


      1 #!/bin/sh
      2 
      3 col=$(colorpicker --short --one-shot)
      4 
      5 sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.cache/circle.svg > /tmp/circle.svg
      6 
      7 echo "$col" | xsel -b
      8 
      9 notify-send -i "/tmp/circle.svg" -a "Colorpicker" "$col was successfully copied to your clipboard."