/ 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" gravity=("center") # "center" "northwest" "northeast" "southwest" "southeast"
if [[ numberOfDisplays == 1 ]] || [[ numberOfDisplays == 3 ]] ; then if [[ numberOfDisplays == 1 ]] || [[ numberOfDisplays == 3 ]] ; then
gravity=("center" "northwest" "northeast" "southwest" "southeast") gravity=("center" "northwest" "northeast" "southwest" "southeast")
elif [[ numberOfDisplays == 2 ]] || [[ numberOfDisplays == 4 ]] ; then elif [[ numberOfDisplays == 2 ]] ; then
gravity=("northeast" "southeast") gravity=("northeast" "southeast")
else else
gravity=("northeast" "southeast") gravity=("southeast")
fi fi
random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]} random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}