From 786f9c22fab19de866566de4c7933aef416a1462 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Wed, 11 Oct 2023 18:21:52 +0100 Subject: Switched to River --- .config/yambar/scripts/yambar-start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .config/yambar/scripts/yambar-start.sh (limited to '.config/yambar/scripts/yambar-start.sh') diff --git a/.config/yambar/scripts/yambar-start.sh b/.config/yambar/scripts/yambar-start.sh new file mode 100755 index 0000000..064d984 --- /dev/null +++ b/.config/yambar/scripts/yambar-start.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +killall yambar + +monitors=$(wlr-randr | grep "^[^ ]" | awk '{ print$1 }') +total=$(wlr-randr | grep "^[^ ]" | awk '{ print$1 }' | wc -l) + +for monitor in ${monitors}; do + riverctl focus-output ${monitor} + # swaymsg focus output ${monitor} + yambar & + sleep 0.2 +done +if [ "$total" -gt "1" ]; then + riverctl focus-output HDMI-A-1 + # swaymsg focus output HDMI-A-1 +fi +exit 0 -- cgit v1.2.3