Use maim instead of scrot

This commit is contained in:
Ryan Kes 2019-05-31 17:10:27 +02:00
parent 8aaa26ce1a
commit 8a0b469ede
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ arch=('i686' 'x86_64')
license=('MIT')
options=(zipman)
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu')
optdepends=('corrupter')
optdepends=('corrupter' 'maim' 'i3lock')
install=dwm.install
_patches=(
@ -36,7 +36,7 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
'dda4ab6363b58a3b8e2cacf7166b6f74'
'939f403a71b6e85261d09fc3412269ee'
'10bd3378b4b4aa7a2e4ed8685cea1be6'
'854295322b5149738c02bffcb66fcc37'
'31a7569d7f3d43846f59e854ec5d1da0'
'fbb786263f2d714b18368ff64779d669'
'46ff022e2a2c6139e71399eb19d1aebb'

2
lock
View file

@ -4,7 +4,7 @@ NUMBER_OF_SCREENS="$(xrandr | grep -c '\*')"
if [ "$NUMBER_OF_SCREENS" -gt 1 ]
then
scrot "lock.png" -e 'mv $f ~/.cache/'
maim ~/.cache/lock.png
corrupter ~/.cache/lock.png ~/.cache/lock.png
fi