diff options
Diffstat (limited to 'local/bin/screenshot-prompt')
| -rwxr-xr-x | local/bin/screenshot-prompt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/local/bin/screenshot-prompt b/local/bin/screenshot-prompt index 6852eba..b320178 100755 --- a/local/bin/screenshot-prompt +++ b/local/bin/screenshot-prompt @@ -23,6 +23,7 @@ screenshot_dir="$HOME/screenshots" [ ! -d "$screenshot_dir" ] && mkdir "$screenshot_dir" scrot_wrapper() { + # shellcheck disable=SC2016 file_format="$screenshot_dir/"'%Y-%m-%d_$wx$h.png' if [ "$1" = '-' ] then @@ -30,6 +31,7 @@ scrot_wrapper() { shift else # optipng optimizes png size without loss (doesn't work if we output directly to stdout) + # shellcheck disable=SC2016 command -v optipng && optipng_arg='optipng -o4 $f' fi scrot --silent --quality 95 --compression 9 --file "$file_format" -e "$optipng_arg" "$@" |
