Hyprland Wiki
Contribute to the Wiki!Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Master Layout

The master layout makes one (or more) window(s) be the “master”, taking (by default) the left part of the screen, and tiles the rest on the right. You can change the orientation on per-workspace basis if you want to use anything other than the default left/right split.

master1

Config

category name master

namedescriptiontypedefault
special_scale_factor(0.0 - 1.0) the scale of the special workspace windowsfloat0.8
new_is_masterwhether a newly open window should replace the master or join the slaves.booltrue
new_on_topwhether a newly open window should be on the top of the stackboolfalse
no_gaps_when_onlywhether to apply gaps when there is only one window on a workspace, aka. smart gaps.boolfalse
orientationdefault placement of the master area, can be left, right, top or bottomstringleft
inherit_fullscreeninherit fullscreen status when cycling/swapping to another window (e.g. monocle layout)booltrue

Dispatchers

layoutmsg params:

paramdescription
swapwithmasterswaps the current window with master. If the current window is the master, swaps it with the first child.
focusmasterfocuses the master window. If the current window is the master, focuses the first child.
cyclenextfocuses the next window respecting the layout
cycleprevfocuses the previous window respecting the layout
swapnextswaps the focused window with the next window respecting the layout
swapprevswaps the focused window with the previous window respecting the layout
addmasteradds a master to the master side. That will be the active window, if it’s not a master, or the first non-master window.
removemasterremoves a master from the master side. That will be the active window, if it’s a master, or the last master window.
orientationleftsets the orientation for the current workspace to left (master area left, slave windows to the right, vertically stacked)
orientationrightsets the orientation for the current workspace to right (master area right, slave windows to the left, vertically stacked)
orientationtopsets the orientation for the current workspace to top (master area top, slave windows to the bottom, horizontally stacked)
orientationbottomsets the orientation for the current workspace to bottom (master area bottom, slave windows to the top, horizontally stacked)
orientationnextcycle to the next orientation for the current workspace (clockwise)
orientationprevcycle to the previous orientation for the current workspace (counter-clockwise)

example usage:

bind=MOD,KEY,layoutmsg,cyclenext