diff options
| author | Robert Günzler <r@gnzler.io> | 2020-01-26 17:16:07 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-01-26 18:00:59 +0100 |
| commit | f5d56602df70950de6b7d40966b00c9939c81763 (patch) | |
| tree | b50ffeb5496fe3525cc1bab2629389ced95435b7 /bin/colorpick | |
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to 'bin/colorpick')
| -rwxr-xr-x | bin/colorpick | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/colorpick b/bin/colorpick new file mode 100755 index 0000000..bb099cd --- /dev/null +++ b/bin/colorpick @@ -0,0 +1,6 @@ +#!/bin/sh +# dependencies: grim slurp wl-clipboard +# src: https://git.sr.ht/~sircmpwn/dotfiles/tree/f9e7e88a72c2b87e5ab823205cb3a3aa8f3babd0/bin/colorpick +color=$(grim -g "$(slurp -p -b 00000000)" - | convert - txt:- | awk 'END{print $3}') +wl-copy "$color" +notify-send "Color copied to clipboard" "$color" --icon '/usr/share/icons/Adwaita/scalable/actions/color-select-symbolic.svg' |