mirror of
https://github.com/winneon/gsu.git
synced 2026-09-10 07:16:25 -04:00
display: added a num argument
This commit is contained in:
parent
c3e4be06a9
commit
c84b777219
9
gsu
9
gsu
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue