nixos-config/scripts/color_picker
2023-02-25 19:48:14 -03:00

11 lines
177 B
Bash
Executable file

#!/bin/sh
set -xe
grim -g "$(slurp -b aabbcc00 -p)" - |
convert - txt:- |
grep -oE '#[0-9A-Fa-f]{6}' |
wl-copy -n
notify-send "$(wl-paste)" "Copied to clipboard"