This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/scripts/color-picker
lelgenio a1a5363b7a 😎😎😎😎😎
2020-07-12 03:02:43 -03:00

18 lines
290 B
Bash
Executable file

#!/bin/sh
RED_ON="$(pgrep redshift)"
if test -n "$RED_ON";then
pkill redshift
fi
grim -g "$(slurp -b aabbcc00 -p)" - |
convert - txt:- |
grep -oE '#[0-9A-Fa-f]{6}' |
wl-copy
notify-send "$(wl-paste)" "Copied to clipboard"
test -n "$RED_ON" && redshift &> /dev/null &