diff options
Diffstat (limited to '.local/bin/colorpicker')
-rwxr-xr-x | .local/bin/colorpicker | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/colorpicker b/.local/bin/colorpicker new file mode 100755 index 0000000..5e37201 --- /dev/null +++ b/.local/bin/colorpicker @@ -0,0 +1,11 @@ +#!/bin/sh + +[ -z "$1" ] && col=$(hyprpicker -an ) || + col="$1" + + +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." |