summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-31 16:28:16 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-31 16:28:16 +0200
commit303f89536b6179a1b0a75e003d79d1fd46d0bc60 (patch)
treebfe42fa715170196ee7eded20741ed5f6ce358d2 /.local/bin
parentb53322c1dd927d591c766aa9407c809a3209f4f2 (diff)
Moved polybar launch script to .local/bin
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/polybar-launch10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch
new file mode 100755
index 0000000..d425d48
--- /dev/null
+++ b/.local/bin/polybar-launch
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+# Terminate already running bar instances
+killall -q polybar
+
+echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
+polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log & disown
+polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log & disown
+
+echo "Bars launched..."