From 25274ad450397c718ff950868723e52352d46453 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 16 May 2023 15:56:47 +0300 Subject: [PATCH] Add colorpick.sh script --- bin/colorpick.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/colorpick.sh diff --git a/bin/colorpick.sh b/bin/colorpick.sh new file mode 100755 index 0000000..17ba724 --- /dev/null +++ b/bin/colorpick.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +color=$(hyprpicker) + +wl-copy "$color" + +status="$?" +if [[ "$status" == "0" ]]; then + notify-send "Color copied to clipboard" "$color" +else + notify-send "Some error happened while copying color" +fi