Sleep a bit before starting aggietime auth on work machine, in watch aggietime dont remove the socket
This commit is contained in:
parent
a7b1db72e6
commit
f862b976dd
@ -21,5 +21,5 @@
|
||||
(setq *mouse-focus-policy* :sloppy)
|
||||
|
||||
(when (is-work-machine)
|
||||
(run-shell-command "~/scripts/watch_aggietimed.sh"))
|
||||
(run-shell-command "sleep 3 && . ~/scripts/watch_aggietimed.sh"))
|
||||
(run-shell-command "dunst")
|
||||
|
@ -1,16 +1,17 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
socket=/tmp/aggietimed.sock
|
||||
env_file=/home/lizzy/work/simple_scripts/aggietime_cli/.env
|
||||
|
||||
export $(cat $env_file | xargs)
|
||||
|
||||
while true
|
||||
do
|
||||
aggietimed -d --socket-path $socket
|
||||
|
||||
aggietimed -d -s $socket
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
break
|
||||
else
|
||||
rm $socket
|
||||
sleep 1
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user