x1a4
April 20th, 2008, 06:01 PM
Hi,
How do I get the position of a window using its id which is stored in $wid?
Thank you.
EDIT: Figured it out
x=$(xwininfo -id $wid | grep "Absolute upper-left X")
x=${x:25}
y=$(xwininfo -id $wid | grep "Absolute upper-left Y")
y=${y:25}
How do I get the position of a window using its id which is stored in $wid?
Thank you.
EDIT: Figured it out
x=$(xwininfo -id $wid | grep "Absolute upper-left X")
x=${x:25}
y=$(xwininfo -id $wid | grep "Absolute upper-left Y")
y=${y:25}