From e80089349947d0c3bc1523cb1f582b2b580be602 Mon Sep 17 00:00:00 2001 From: elythh Date: Sat, 28 Oct 2023 18:19:04 +0200 Subject: [PATCH] :wrench: dont need you --- home/shared/bin/misc/colorpicker.nix | 34 ---------------------------- 1 file changed, 34 deletions(-) delete mode 100644 home/shared/bin/misc/colorpicker.nix diff --git a/home/shared/bin/misc/colorpicker.nix b/home/shared/bin/misc/colorpicker.nix deleted file mode 100644 index 8cfebc42..00000000 --- a/home/shared/bin/misc/colorpicker.nix +++ /dev/null @@ -1,34 +0,0 @@ -_: -'' - #!/usr/bin/env bash - - # requieres dunst hyprpicker imagemagick wl-clipboard - - TEMP_DIR=/tmp/colorpicker - - [ ! -d $TEMP_DIR ] && mkdir -p $TEMP_DIR - - abort() { - notify-send -a "Color Picker info" -i dialog-error "Color Picker" "aborted" - exit 1 - } - - pick() { - HEX_COLOR=$(hyprpicker) - - [[ -z $HEX_COLOR ]] && abort - - HEX="${HEX_COLOR#\#}" - FNAME="$TEMP_DIR/$HEX.png" - - convert -size 100x100 xc:"$HEX_COLOR" "$FNAME" - - COLOR_CODE="$HEX_COLOR" - - echo "$COLOR_CODE" | wl-copy -n - - notify-send -u low -a "Color Picker" -i "$FNAME" $COLOR_CODE "Copied to clipboard" - } - - pick -''