1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00

added screen lock script

This commit is contained in:
Ryan Kes 2019-03-22 16:17:02 +01:00
parent a0a69750bb
commit 2a7acdf12d
2 changed files with 8 additions and 0 deletions

View File

@ -31,11 +31,13 @@ _patches=(
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
config.h config.h
dwm.desktop dwm.desktop
lock
"${_patches[@]}") "${_patches[@]}")
md5sums=('9929845ccdec4d2cc191f16210dd7f3d' md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
'72c7f3101262b13b337621d9a5a21936' '72c7f3101262b13b337621d9a5a21936'
'939f403a71b6e85261d09fc3412269ee' '939f403a71b6e85261d09fc3412269ee'
'8444c7d7bfca2b3ec5b5f686d7661867'
'31a7569d7f3d43846f59e854ec5d1da0' '31a7569d7f3d43846f59e854ec5d1da0'
'fbb786263f2d714b18368ff64779d669' 'fbb786263f2d714b18368ff64779d669'
'c75af619c04cfae7b9740ec140d1dc6c' 'c75af619c04cfae7b9740ec140d1dc6c'
@ -72,4 +74,7 @@ package() {
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
cd ../
install -Dm0755 lock "${pkgdir}/usr/bin/lock"
} }

3
lock Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
i3lock -e -b -f -i ~/.cache/lock.png