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

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

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

echo "$col" | xsel -b

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