/ 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"
|
||||
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[@]} ]}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user