xss-lock: provide session ID directly

xss-lock is not able to grab it by itself. See
<https://bitbucket.org/raymonad/xss-lock/issues/13/allow-operation-as-systemd-user-unit>
This commit is contained in:
Vincent Bernat 2020-01-19 21:00:05 +01:00
parent 714f2aa0fc
commit 2491973cab

View file

@ -16,7 +16,7 @@ unconfigure() {
case "$1" in
start)
configure
exec xss-lock -n "$me notify" -l $me lock
exec xss-lock -s ${XDG_SESSION_ID} -n "$me notify" -l $me lock
;;
dim|notify)
echo "$(date --rfc-3339=seconds) $me: notify: start"