winmag (289B)
1 #!/bin/sh 2 3 IFS=$'\n' 4 array=($(xwininfo | grep -E "Absolute upper-left X|Absolute upper-left Y|Width|Height" | awk -F: '{print $2}' | tr -d ' ')) 5 6 pos_x=$(( array[0] + 10 )) 7 pos_y=$(( array[1] + 10 )) 8 width=${array[2]} 9 height=${array[3]} 10 11 xzoom -source ${width}x${height}+${pos_x}+${pos_y}