Files
dotfiles/hypr/scripts/color_picker
2025-08-13 21:46:48 +02:00

17 lines
330 B
Bash
Executable File

#!/usr/bin/env bash
# Simple Script To Pick Color Quickly.
# pick, autocopy and get the value
color=$(hyprpicker -a)
echo "$color"
if [[ "$color" ]]; then
image=/tmp/${color}.png
# generate preview
convert -size 48x48 xc:"$color" "$image"
# notify the color
notify-send -i "$image" "$color" "Copied to clipboard"
fi