Permalink
Browse files

use convert to shave off image borders on screenshots

  • Loading branch information...
jmoiron committed Jun 30, 2016
1 parent 8d01686 commit a8ec12ccd16ce7729e3638d69a16a0249ef84350
Showing with 5 additions and 0 deletions.
  1. +5 −0 home/.local/bin/capture
View
@@ -16,6 +16,11 @@ elif [ -n "$(which scrot)" ]; then
# https://code.google.com/p/xmonad/issues/detail?id=476
sleep 0.2
scrot -s $CAPPATH &> $HOME/quickup.log
# if we have convert/imagemagick, shave 1 pixel from the image, as scrot
# adds a black outline which looks bad
if [ -n "$(which convert)" ]; then
convert "$CAPPATH" -shave 1x1 "$CAPPATH"
fi
$HOME/.local/bin/quickup $CAPPATH >> $HOME/quickup.log
rm $CAPPATH
fi

0 comments on commit a8ec12c

Please sign in to comment.