summaryrefslogtreecommitdiffstats
path: root/bspwm/launch.sh
diff options
context:
space:
mode:
authorSalad <water_appreciator@protonmail.com>2020-06-07 16:33:49 +0200
committerSalad <water_appreciator@protonmail.com>2020-06-07 16:33:49 +0200
commita7579a9f7cc19c29db45f00d66f47777a643d999 (patch)
tree04c6171c86ae8d2035478a125868496154e68707 /bspwm/launch.sh
parentchangED xinitrc (diff)
downloaddotfiles-a7579a9f7cc19c29db45f00d66f47777a643d999.tar.gz
dotfiles-a7579a9f7cc19c29db45f00d66f47777a643d999.tar.bz2
dotfiles-a7579a9f7cc19c29db45f00d66f47777a643d999.tar.xz
dotfiles-a7579a9f7cc19c29db45f00d66f47777a643d999.tar.zst
dotfiles-a7579a9f7cc19c29db45f00d66f47777a643d999.zip
polybar fix
Diffstat (limited to 'bspwm/launch.sh')
-rwxr-xr-xbspwm/launch.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bspwm/launch.sh b/bspwm/launch.sh
new file mode 100755
index 0000000..822de9c
--- /dev/null
+++ b/bspwm/launch.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+# Terminate already running bar instances
+killall -q polybar
+# If all your bars have ipc enabled, you can also use
+# polybar-msg cmd quit
+
+# Launch bar1 and bar2
+#echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
+#polybar example >>/tmp/polybar1.log 2>&1 &
+for m in $(polybar --list-monitors | cut -d":" -f1); do
+ MONITOR=$m polybar --reload example &
+done
+
+echo "Bars launched..."