aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/colorpick
blob: efb67cc20557a3ab64631e5ff24c6c7a769a14a5 (plain)
1
2
3
4
5
6
#!/bin/sh
# Taken and slightly modified from Drew DeVault's dotfiles

color=$(grim -g "$(slurp -p -b 00000000)" - | convert - txt:- | awk 'END{print $3}')
wl-copy "$color"
notify-send "🎨 Color copied to clipboard" "<span color=\"$color\">$color</span>"