runit-user-services/barrierc/run

12 lines
267 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
2023-08-20 16:07:25 +00:00
exec barrierc --no-daemon $(<${0:a:h}/server)