/ gravity upd
This commit is contained in:
@@ -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[@]} ]}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user