From 6b7ab32ac873c64e3aaea836b7e04ae1d8016224 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 8 Sep 2020 09:33:10 +0200 Subject: [PATCH] fix session for tint2 --- bin/mb-tint2-session | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mb-tint2-session b/bin/mb-tint2-session index a1ae048..6d807f0 100755 --- a/bin/mb-tint2-session +++ b/bin/mb-tint2-session @@ -40,13 +40,17 @@ testSessionfile(){ if test -z $line &>/dev/null;then continue else - tint2 -c "$line" & + if test -e "$HOME/$line";then + tint2 -c "$HOME/$line" & sleep 1s + else + tint2 -c "$line" & + fi fi done < "$1" else echo -e "Created sessionfile \"$1\"\nRunning default tint2rc" 2>&1 - echo "/.config/tint2/tint2rc" > "$SESSIONFILE" + echo "$HOME/.config/tint2/tint2rc" > "$SESSIONFILE" killTints tint2 -c "$TINT2PATH/tint2rc" &>/dev/null fi