* frame - an `hs.geometry` rect object indicating the frame that the grid will occupy for the given screen if omitted or nil, sets the default grid, which is used when no specific grid is found for any given screen/resolution * screen - an `hs.screen` object, or a valid argument to `hs.screen.find()`, indicating the screen(s) to apply the grid to * grid - an `hs.geometry` size, or argument to construct one, indicating the number of columns and rows for the grid Sets the grid size for a given screen or screen resolution Local setmetatable,rawget,rawset =setmetatable,rawget,rawset Local sformat,ssub,ulen,type,tostring = string. Local ipairs,pairs,min,max,floor,fmod = ipairs,pairs,math. ![]() After highlighting enough cells, press enter to move/resize the window to the highlighted area. In this case, the grid will highlight the selected cells. Once you selected a cell, you can use the arrow keys to navigate through the grid. You can also use the arrow keys to move the window onto adjacent screens, and the tab/shift-tab keys to cycle to the next/previous window. The selected cell will become the new upper-left of the window. For a move-only, you can select a cell and confirm with 'return'. To resize/move the window, you can select the corner cells of the desired position. The grid will be overlaid on the focused or frontmost window's screen with keyboard hints. Additionally, a modal keyboard driven interface for interactive resizing is provided via `hs.grid.show()` * a cell `'2,0 1x1'` will be in the upper-right corner * a cell `'0,0 1x1'` will be in the upper-left corner * h - The number of rows the window occupies * w - The number of columns the window occupies * y - The row of the top edge of the window * x - The column of the left edge of the window Each cell is an `hs.geometry` rect with these fields: Windows that are aligned with the grid have their location and size described as a `cell`. You can specify different grid layouts for different screens and/or screen resolutions. The default layout of the grid is 3 columns by 3 rows. ![]() The grid partitions your screens for the purposes of window management.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |