# MoveToPage

`MoveToPage` options x p w y p w prev

Moves the selected window to another page (x,y). The upper left page is (0,0), the upper right is (M,0), where M is one less than the current number of horizontal pages specified in the command. Similarly the lower left page is (0,N), and the lower right page is (M,N). Negative page numbers refer to pages from the rightmost/lowest page. If and are not given, the window is moved to the current page (a window that has the focus but is off-screen can be retrieved with this). Moving windows to a page relative to the current page can be achieved by adding a trailing '' after any or both numerical arguments. To move the window relative to its current location, add a trailing ''. To move a window to the previous page use as the single argument.

Windows are usually not moved beyond desk boundaries.

Possible options are and to wrap around the x or y coordinate when the window is moved beyond the border of the desktop. For example, with wrapx, when the window moves past the right edge of the desktop, it reappears on the left edge. The options and allow moving windows beyond the desk boundaries in x and y direction (disabling the wrapx and wrapy options).

Examples:

    #  window to page (2,3)
    MoveToPage 2 3

    #  window to lowest and rightmost page
    MoveToPage -1 -1

    #  window to last page visited
    MoveToPage prev

    #  window two pages to the right and one
    # page up, wrap at desk boundaries
    MoveToPage wrapx wrapy +2p -1p