Compare commits

..

No commits in common. "a246ab843d1f54cf973b2274fdd1e29b131d61fd" and "4f5174063d133944c95cf5c48fdd3fdaae475229" have entirely different histories.

8 changed files with 12 additions and 16 deletions

View file

@ -1,10 +1,8 @@
#!/bin/zsh
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
SERVER_FILE=${XDG_CONFIG_HOME}/barrier/server
if [[ ! -e $SERVER_FILE ]] then
if [[ ! -e ${0:A:h}/server ]] then
<<-ERROR
Service requires configuration!
Create \`${SERVER_FILE}\` containing the target server name
Create \`${0:A:h}/server\` containing the target server name
ERROR
exit 1
fi
@ -12,4 +10,4 @@ source ${0:A:h:h}/import-env.zsh
import-env awesome || exit 1
exec 2>&1
exec barrierc --no-daemon $(<${SERVER_FILE})
exec barrierc --no-daemon $(<${0:A:h}/server)

1
barrierc/server Normal file
View file

@ -0,0 +1 @@
gaminghorst

View file

@ -1,5 +1,5 @@
#!/bin/zsh
source ${0:A:h:h}/import-env.zsh
source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1
exec 2>&1

View file

@ -1 +0,0 @@
../../log

View file

@ -1 +0,0 @@
/run/user/1000/supervise.brscan-skey-log

View file

@ -1,4 +0,0 @@
#!/bin/zsh
export PATH=${PATH}:$HOME/.local/bin:/opt/brother/scanner/brscan-skey
exec 2>&1
exec /opt/brother/scanner/brscan-skey/brscan-skey-exe

View file

@ -1 +0,0 @@
/run/user/1000/supervise.brscan-skey

View file

@ -1,5 +1,9 @@
#!/bin/zsh
source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1
#!/bin/sh
if ! pgrep -x awesome; then
sleep 2
exit 1
fi
export DISPLAY=:0
exec 2>&1
exec kdeconnect-indicator