[colorpicker] add colorpicker

This commit is contained in:
Rune Juhl (Atea) 2024-12-02 11:43:12 +01:00
parent ba5efb8223
commit b0d9b2c717

5
colorpicker Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
#
# https://unix.stackexchange.com/a/523805
grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-