@@ -62,7 +62,7 @@ function main() { | |||
local joinargs=() | |||
while [ -n "$1" ] && [ "$1" != "--" ]; do | |||
if xrandr --listmonitors | grep -q "$1"; then | |||
if xrandr --listmonitors | grep -q "[+* ]$1"; then | |||
local res="$(getres "$1")" | |||
run convert "$INDIR/motif.png" -resize "$res^" -gravity center -extent "$res" "$OUTDIR/$1.png" | |||
joinargs+=("$OUTDIR/$1.png" -geometry "$(getoff "$1")" -composite) |