I was wondering if any patch had been written to add support for
percentages in the 'windowmove' command?
Greetings,
--
Bastien
You can get the window position using xdotool itself using
xdotool getactivewindow getwindowgeometry -shell
I wrote a script that will 'bounce' 'shake' etc a given window
to get the users attention.
The script uses xdotool to do the job.
http://www.ict.griffith.edu.au/anthony/software/jiggle_window.xdotool.sh
One problem I have however is that the xdotool seems to have trouble
reporting window positions correctly when "openbox" window manage frame
extents are present.
Now the xdotool position, I try and move the current window 1 pixel
upward.
eval $(xdotool getactivewindow getwindowgeometry -shell)
xdotool windowmove -sync $WINDOW $X $((Y-1))
On my screen my window jumps down and right about twice the
amount the window manager added as extra framing around the window.
Basically the xdotool returned position info is just not correct.
What is actually happening is that xdotool returns a position that
is "xwininfo"s Absolute coordinate + Relative Coordinate!
This is the fix (which is in the above script) that I have found to work,
at least until xdotool position info is fixed. I basically need to subtract
the windows framing extents twice.
eval $(xdotool getactivewindow getwindowgeometry -shell)
set -$- $( xprop -id $WINDOW _NET_FRAME_EXTENTS | tr -cs '0-9' ' ' )
X=$(( $X - 2 * ${1:-0} )) # Window manager correction
Y=$(( $Y - 2 * ${3:-0} ))
xdotool windowmove -sync $WINDOW $X $((Y-1))
Now the window moves correctly 1 pixel upward!
I hope this is of help.
(my xdotool version is currently 2.20110628.1)
Anthony Thyssen ( System Programmer ) <A.Th...@griffith.edu.au>
--------------------------------------------------------------------------
There are bugs and there are bugs. And then there are bugs.
--------------------------------------------------------------------------
Anthony's Castle http://www.ict.griffith.edu.au/anthony/