2023-08-20 16:00:59 +00:00
|
|
|
#!/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
|
2023-08-20 16:00:59 +00:00
|
|
|
source ${0:a:h:h}/import-env.zsh
|
2023-09-19 08:48:15 +00:00
|
|
|
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)
|