[−][src]Module penrose::layout
Layouts are user definable window arangements for a Workspace.
Layouts are maintained per monitor and allow for indepent management of the two paramaters (n_main, main_ratio) that are used to modify layout logic. As penrose makes use of a tagging system as opposed to workspaces, layouts will be passed a Vec of clients to handle which is determined by the current client and monitor tags. arrange is only called if there are clients to handle so there is no need to check that clients.len() > 0. r is the monitor Region defining the size of the monitor for the layout to position windows.
Structs
Layout | Responsible for arranging windows within a Workspace. |
Enums
LayoutKind | How a given layout should treat borders, gaps and floating windows. |
Functions
client_breakdown | number of clients for the main area vs secondary |
floating | A no-op floating layout that simply satisfies the type required for Layout |
side_stack | A simple layout that places the main region on the left and tiles remaining windows in a single column to the right. |