initial commit

This commit is contained in:
David Thurstenson 2017-02-07 09:06:49 -06:00
commit 65891e38a9
2 changed files with 26 additions and 0 deletions

15
PKGBUILD Normal file
View File

@ -0,0 +1,15 @@
# Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=xautolock-systemd
pkgver=0.1
pkgrel=1
pkgdesc="Systemd unit to run 'xautolock -locknow' before suspend"
arch=('any')
url="https://git.thurstylark.com/xautolock-systemd.git/"
license=('GPL')
depends=('xautolock')
source=("xautolock@.service")
md5sums=()
package() {
install -Dm644 ${srcdir}/xautolock@.service ${pkgdir}/etc/systemd/system/xautolock@.service
}

11
xautolock@.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Lock screen before suspend
Before=sleep.target
[Service]
User=%I
Type=simple
ExecStart=/usr/bin/xautolock -locknow
[Install]
WantedBy=suspend.target