summaryrefslogtreecommitdiffstats
path: root/.config/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/launch.sh')
-rwxr-xr-x.config/polybar/launch.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh
index 0f657c9..1e94ee3 100755
--- a/.config/polybar/launch.sh
+++ b/.config/polybar/launch.sh
@@ -1,15 +1,14 @@
1#!/bin/bash 1#!/usr/bin/env bash
2
3# Try your luck one last time
4# fc-cache -fv
5 2
6# Terminate already running bar instances 3# Terminate already running bar instances
7killall -q polybar 4# killall -q polybar
8 5
9# Wait until the processes have been shut down 6# If all your bars have ipc enabled, you can also use
10while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 7polybar-msg cmd quit
11 8
12# Launch bar 9# Launch bar
13polybar top & 10# Launch bar1 and bar2
11echo "---" | tee -a /tmp/polybar.top.log
12polybar top 2>&1 | tee -a /tmp/polybar.top.log & disown
14 13
15echo "Bar launched..." 14echo "Bar launched..."