runit-user-services/barrierc/run

14 lines
288 B
Plaintext
Raw Normal View History

#!/bin/zsh
2023-08-20 16:07:25 +00:00
if [[ ! -e ${0:a:h}/server ]] then
<<-ERROR
Service requires configuration!
Create \`${0:a:h}/server\` containing the target server name
ERROR
exit 1
fi
source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1
2023-10-24 15:11:15 +00:00
exec 2>&1
2023-08-20 16:07:25 +00:00
exec barrierc --no-daemon $(<${0:a:h}/server)