aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlemonblocks/start.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lemonblocks/start.sh b/lemonblocks/start.sh
index c7b591ce..6b4f60ba 100755
--- a/lemonblocks/start.sh
+++ b/lemonblocks/start.sh
@@ -24,7 +24,6 @@ killall "lemonblocks"
mkfifo /tmp/lemonblockspipe
# start xmonad status lemonbar
-xmonad-log | lemonbar -b -g 800x21+0+0 -B '#171520' -F '#ffffff' -o -3 -f 'Source Han Sans JP:size=10' -o 0 -f 'RobotoMono Nerd Font:style=Regular:size=15' &
# Start lemonbar
cat "/tmp/lemonblockspipe" | lemonbar -b -p -a "$CLICKABLE_AREAS" \
-g "$PANEL_WIDTH"x"$PANEL_HEIGHT"+"$PANEL_HORIZONTAL_OFFSET"+"$PANEL_VERTICAL_OFFSET" \
@@ -44,3 +43,6 @@ then
else
./bin/lemonblocks
fi
+
+sleep 5 # otherwise it crashes because it executes before xmonad starts
+xmonad-log | lemonbar -b -g 800x21+0+0 -B '#171520' -F '#ffffff' -o -3 -f 'Source Han Sans JP:size=10' -o 0 -f 'RobotoMono Nerd Font:style=Regular:size=15' &