barrierc: specify server
This commit is contained in:
parent
7555b91fdf
commit
d119404ae4
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue