[openbox] Swap Windows Between Screens in Xinerama Mode
John Russell
drjimmy42 at yahoo.com
Wed Jun 9 09:48:30 EDT 2004
> ID=`xdpyinfo | grep focus | cut -d ' ' -f 4 - | cut -d ',' -f 1`
> xdpyinfo | grep focus | grep Parent &> /dev/null && ID=$((ID-1))
>
> After executing these two lines ID contains the active window ID, and
> you can pass it to wmctrl with the -i option (numerical id).
>
> The second line is necessary because xdpyinfo reports the window id
> differently for "graphical" windows, as opposed to text windows like
> terms.
>
That is quite an excellent script. Thanks.
More information about the openbox
mailing list