From e4b9629a3df499cb560ec1c97bcbb8588451ea9e Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 28 Apr 2022 13:14:23 +0800 Subject: Update --- misc/openbox/rc.xml | 11 +++++++++++ tools/init/sync.sh | 15 ++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/misc/openbox/rc.xml b/misc/openbox/rc.xml index 58a8bc9..0b36250 100644 --- a/misc/openbox/rc.xml +++ b/misc/openbox/rc.xml @@ -181,6 +181,17 @@ + + + yes + + no + + + + + + diff --git a/tools/init/sync.sh b/tools/init/sync.sh index c65f720..349ca77 100755 --- a/tools/init/sync.sh +++ b/tools/init/sync.sh @@ -15,13 +15,14 @@ sync ~/.task & sync ~/.password-store & sync ~/.vim_runtime & -while [ $(jobs -r | wc -l) -gt 0 ]; do - sleep 1; -done - -if which notify-send &>/dev/null; then - notify-send 'Repos synced' -fi +while true; do + if test $(jobs -r | wc -l) -gt 0; then + sleep 1; + else + which notify-send &>/dev/null && notify-send 'Repos synced' + break + fi +done & # others repo #check_upstream ~/git/tig || echo in `pwd` >/dev/tty & -- cgit v1.2.3-70-g09d2