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