/ gravity upd

This commit is contained in:
fro
2025-12-29 10:36:57 -05:00
parent 395adcce37
commit 9257ce78d0

View File

@@ -13,10 +13,10 @@ numberOfDisplays=$(xrandr --query | grep -o " connected " | wc -l)
gravity=("center") # "center" "northwest" "northeast" "southwest" "southeast"
if [[ numberOfDisplays == 1 ]] || [[ numberOfDisplays == 3 ]] ; then
gravity=("center" "northwest" "northeast" "southwest" "southeast")
elif [[ numberOfDisplays == 2 ]] || [[ numberOfDisplays == 4 ]] ; then
elif [[ numberOfDisplays == 2 ]] ; then
gravity=("northeast" "southeast")
else
gravity=("northeast" "southeast")
gravity=("southeast")
fi
random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}