barrierc: specify server

This commit is contained in:
crater2150 2023-08-20 18:07:25 +02:00
parent 7555b91fdf
commit d119404ae4

View file

@ -1,4 +1,11 @@
#!/bin/zsh #!/bin/zsh
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 source ${0:a:h:h}/import-env.zsh
import-env awesome import-env awesome
exec barrierc --no-daemon exec barrierc --no-daemon $(<${0:a:h}/server)