Compare commits
No commits in common. "a246ab843d1f54cf973b2274fdd1e29b131d61fd" and "4f5174063d133944c95cf5c48fdd3fdaae475229" have entirely different histories.
a246ab843d
...
4f5174063d
8 changed files with 12 additions and 16 deletions
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
|
if [[ ! -e ${0:A:h}/server ]] then
|
||||||
SERVER_FILE=${XDG_CONFIG_HOME}/barrier/server
|
|
||||||
if [[ ! -e $SERVER_FILE ]] then
|
|
||||||
<<-ERROR
|
<<-ERROR
|
||||||
Service requires configuration!
|
Service requires configuration!
|
||||||
Create \`${SERVER_FILE}\` containing the target server name
|
Create \`${0:A:h}/server\` containing the target server name
|
||||||
ERROR
|
ERROR
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -12,4 +10,4 @@ source ${0:A:h:h}/import-env.zsh
|
||||||
import-env awesome || exit 1
|
import-env awesome || exit 1
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec barrierc --no-daemon $(<${SERVER_FILE})
|
exec barrierc --no-daemon $(<${0:A:h}/server)
|
||||||
|
|
1
barrierc/server
Normal file
1
barrierc/server
Normal file
|
@ -0,0 +1 @@
|
||||||
|
gaminghorst
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
source ${0:A:h:h}/import-env.zsh
|
source ${0:a:h:h}/import-env.zsh
|
||||||
import-env awesome || exit 1
|
import-env awesome || exit 1
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../log
|
|
|
@ -1 +0,0 @@
|
||||||
/run/user/1000/supervise.brscan-skey-log
|
|
|
@ -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
|
|
|
@ -1 +0,0 @@
|
||||||
/run/user/1000/supervise.brscan-skey
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/zsh
|
#!/bin/sh
|
||||||
source ${0:a:h:h}/import-env.zsh
|
if ! pgrep -x awesome; then
|
||||||
import-env awesome || exit 1
|
sleep 2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
export DISPLAY=:0
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec kdeconnect-indicator
|
exec kdeconnect-indicator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue