aboutsummaryrefslogblamecommitdiff
path: root/.config/yambar/scripts/yambar-start.sh
blob: 064d984f6b4081e8ff60ba0bce297643dc238529 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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