#!/bin/sh
exec 2>&1
set -a
. "$XDG_STATE_HOME/dbus"
[ -r conf ] && . ./conf
xset s 300 5
xset dpms 0 0 0
exec xss-lock -n /usr/libexec/xsecurelock/dimmer -l -- sh -c "xsecurelock -- playerctl pause || kill -9 -1"