From b6238b8a07f1e30f4259b6655da98148900b8006 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Wed, 28 Oct 2020 13:51:44 -0400 Subject: just loads of small changes --- .local/bin/colorhandler | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/colorhandler (limited to '.local/bin/colorhandler') diff --git a/.local/bin/colorhandler b/.local/bin/colorhandler new file mode 100755 index 0000000..dabff18 --- /dev/null +++ b/.local/bin/colorhandler @@ -0,0 +1,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." -- cgit v1.2.3