display: added a num argument

This commit is contained in:
Jesse Bryan 2017-09-04 20:01:28 -05:00
parent c3e4be06a9
commit c84b777219

9
gsu
View file

@ -177,8 +177,13 @@ get_command() {
;;
*)
if [[ $desktop =~ ^[0-9]+$ ]]; then
echo "num!"
if [[ "$display" =~ ^[0-9]+$ ]]; then
if (($display == $i + 1)); then
MONW=$TEMPMONW
MONH=$TEMPMONH
MONX=$TEMPMONX
MONY=$TEMPMONY
fi
else
if (($TEMPMONW > $MONW)); then
((MONW=$MONW + $TEMPMONW))