From d433e40415b29877c4295c9faf534fe27020b0fe Mon Sep 17 00:00:00 2001 From: Out Of Ideas Date: Tue, 9 Apr 2024 22:23:38 -0500 Subject: [PATCH] Color picker --- color-picker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/color-picker b/color-picker index 0062681..07fc2e2 100755 --- a/color-picker +++ b/color-picker @@ -31,8 +31,8 @@ else ) fi -# Copy to clipboard -echo $color | wl-copy -n - # Display as a notification -notify-send "Copied to clipboard" $color +if [[ "$(notify-send --action 'click=Copied to clipboard' 'Color Picker' $color)" == "click" ]]; then + # Copy to clipboard + echo $color | wl-copy -n +fi