summaryrefslogtreecommitdiff
path: root/launch_polybar.sh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 01:10:41 -0500
committerzachir <zachir@librem.one>2022-10-09 01:10:41 -0500
commit91cdbd9be0d677c8a832e85de9d55aecf2c236fd (patch)
tree9d43e1514d70f8cdd7ac82c6adc92e2583456780 /launch_polybar.sh
initialize repo
Diffstat (limited to 'launch_polybar.sh')
-rwxr-xr-xlaunch_polybar.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/launch_polybar.sh b/launch_polybar.sh
new file mode 100755
index 0000000..9550fb4
--- /dev/null
+++ b/launch_polybar.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if type "xrandr"; then
+ for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
+ MONITOR=$m polybar --reload $1 &
+ done
+else
+ polybar --reload $1 &
+fi