A collection of scripts

prevent slurp from dimming the screen to help with accuracy

yemou f8853c49 eb110551

Changed files
+6 -6
scritps
+6 -6
scritps/colorgrab
··· 13 13 usage() { 14 14 printf '%s\n' "usage: ${0##*/} [options]" \ 15 15 "options:" \ 16 - " -c - copy the color code to the clipboard" \ 16 + " -c - copy to clipboard" \ 17 17 " -h - display usage statement" \ 18 - " -n - send a notification with the color code" \ 19 - " -o - open an image with the color and the color code" \ 20 - " -r - display the color code as an rgb value" \ 21 - " -x - display the color code as a hexcode value (default)" 18 + " -n - send a notification with the color" \ 19 + " -o - open the color as an image" \ 20 + " -r - display the color as an rgb value" \ 21 + " -x - display the color as a hexcode value (default)" 22 22 } 23 23 24 24 # Parse arguments ··· 62 62 [ $color_type ] || color_type="hex" 63 63 64 64 # Get a screenshot of the pixel 65 - grim -s 1 -g "$(slurp -p)" "/tmp/${0##*/}/temp.png" 65 + grim -s 1 -g "$(slurp -b 00000000 -s 00000000 -w -1 -p)" "/tmp/${0##*/}/temp.png" 66 66 67 67 case $color_type in 68 68 hex ) color=$(convert "/tmp/${0##*/}/temp.png" -format "%[hex:p]\n" info:) ;;