summaryrefslogtreecommitdiff
path: root/.local/bin/colorhandler
blob: dabff180558da2114fb4b3a8ed80dbdad68ca1e7 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

col=$(colorpicker --short --one-shot)

sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.cache/circle.svg > /tmp/circle.svg

echo "$col" > xsel -b

notify-send -i "/tmp/circle.svg" -a "Colorpicker" "$col was successfully copied to your clipboard."