summaryrefslogtreecommitdiff
path: root/.local/bin/colorhandler
blob: cc4606d8bda0f7566bf6e0681c8b7a98321b9b6a (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."