From 9581b754cb39212dbebee56f46cb0260572c5df9 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Mon, 28 Nov 2022 00:04:12 -0600 Subject: use /bin/sh not /sbin/sh --- launch_waybar.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 launch_waybar.sh (limited to 'launch_waybar.sh') 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 -- cgit v1.2.3