hyprland-wiki/pages/Configuring/Master-Layout.md

49 lines
2 KiB
Markdown
Raw Normal View History

2022-08-12 20:46:36 +02:00
The master layout makes one window be the "master", taking the left part of the
screen, and tiles the rest on the right.
2022-10-20 22:54:34 +02:00
# Quirks
2022-08-12 20:46:36 +02:00
The right, "slave" windows will always be split uniformly. You cannot change
their size.
![master1](https://user-images.githubusercontent.com/43317083/179357849-321f042c-f536-44b3-9e6f-371df5321836.gif)
2022-10-19 15:22:42 +02:00
However, you can resize the master window.
2022-08-12 20:46:36 +02:00
![master2](https://user-images.githubusercontent.com/43317083/179357863-928b0b5a-ff10-4edc-aa76-3ff88c59c980.gif)
2022-10-20 22:54:34 +02:00
# Config
2022-08-12 20:46:36 +02:00
2022-10-19 15:22:42 +02:00
_category name `master`_
2022-08-12 20:46:36 +02:00
| name | description | type | default |
|---|---|---|---|---|
| pseudotile | enable pseudotiling. Pseudotiled windows retain their floating size when tiled. | bool | false |
| col.group_border | inactive (out of focus) group border color | color | 0x66777700 |
| col.group_border_active | active group border color | color | 0x66ffff00 |
| force_split | 0 -> split follows mouse, 1 -> always split to the left (new = left or top) 2 -> always split to the right (new = right or bottom) | int | 0 |
| preserve_split | if enabled, the split (side/top) will not change regardless of what happens to the container. | bool | false |
| special_scale_factor | 0 - 1 -> specifies the scale factor of windows on the special workspace | float | 0.8 |
| split_width_multiplier | specifies the auto-split width multiplier | float | 1.0 |
| no_gaps_when_only | whether to apply gaps when there is only one window on a workspace, aka. smart gaps. | bool | false |
| use_active_for_splits | whether to prefer the active window or the mouse position for splits | bool | true |
2022-08-12 20:46:36 +02:00
2022-10-20 22:54:34 +02:00
# Dispatchers
2022-08-12 20:46:36 +02:00
`layoutmsg` params:
| dispatcher | description | params |
|---|---|---|
| togglegroup | toggles the current window and its siblings (recursively) into a group | none |
| changegroupactive | switches to the next window in a group. | b - back, f - forward. |
| togglesplit | toggles the split (top/side) of the current window | none |
2022-08-12 20:46:36 +02:00
2022-08-13 17:59:01 +02:00
{{< hint type=info >}}
2022-08-12 20:46:36 +02:00
example usage:
2022-09-24 16:03:37 +02:00
```ini
2022-08-12 20:46:36 +02:00
bind=MOD,KEY,layoutmsg,cyclenext
2022-08-13 01:47:48 +02:00
```
2022-10-19 15:22:42 +02:00
2022-08-13 17:59:01 +02:00
{{< /hint >}}