this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

colorgrab & scr: add $SLURP_ARGS to allow the user to customize slurp

yemou c8d147d5 d75a55d3

+3 -4
+1 -1
scritps/colorgrab
··· 61 61 [ "$color_type" ] || color_type="hex" 62 62 63 63 # Get a screenshot of the pixel 64 - grim -s 1 -g "$(slurp -b 00000000 -s 00000000 -w -1 -p)" "/tmp/${0##*/}/temp.png" 64 + grim -s 1 -g "$(slurp "${SLURP_ARGS}" -b 00000000 -s 00000000 -w -1 -p)" "/tmp/${0##*/}/temp.png" 65 65 66 66 case $color_type in 67 67 hex ) color=$(convert "/tmp/${0##*/}/temp.png" -format "%[hex:p]\n" info:) ;;
+2 -3
scritps/scr
··· 157 157 grim "$filename" > "$SCR_CACHE_DIR/pic.log" 2>&1 158 158 else 159 159 # Get the geometry of the screenshot from the user and take the screenshot 160 - # TODO: add a SLURP_OPTS environment variable to allow the user to customize slurp 161 - if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp)"; fi 160 + if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp "${SLURP_ARGS}")"; fi 162 161 grim "$@" "$filename" > "$SCR_CACHE_DIR/pic.log" 2>&1 163 162 fi 164 163 ··· 198 197 # Intercept Ctrl+C and exit wf-recorder instead of the script 199 198 trap '' INT 200 199 201 - if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp)"; fi 200 + if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp "${SLURP_ARGS}")"; fi 202 201 # Word splitting is favorable here 203 202 # shellcheck disable=SC2086 204 203 wf-recorder $args $rec_extraflags "$@" -f "$filename" > "$SCR_CACHE_DIR/rec.log" 2>&1 &