summaryrefslogtreecommitdiff
path: root/launch_waybar.sh
diff options
context:
space:
mode:
Diffstat (limited to 'launch_waybar.sh')
-rwxr-xr-xlaunch_waybar.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/launch_waybar.sh b/launch_waybar.sh
new file mode 100755
index 0000000..1803ada
--- /dev/null
+++ b/launch_waybar.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+killall waybar
+
+if type "wlr-randr"; then
+ for m in $(wlr-randr | grep -B2 'Enabled: yes' | sed '/^\s\s*/d;/^--$/d' | cut -d' ' -f1); do
+ waybar -c "$XDG_CONFIG_HOME"/waybar/config-$1-$m &
+ done
+else
+ waybar
+fi