bling/docs/layouts/layout.md

66 lines
2.5 KiB
Markdown
Raw Normal View History

2021-02-17 07:01:29 +01:00
## 📎 Layouts <!-- {docsify-ignore} -->
Choose layouts from the list below and add them to to your `awful.layouts` list in your `rc.lua`.
2023-01-28 15:27:21 +01:00
Each layout supports multiple master clients and master width factors, making them easy to use.
2021-02-17 07:01:29 +01:00
The mstab layout uses the tab theme from the tabbed module.
```lua
2021-02-17 07:01:29 +01:00
bling.layout.mstab
bling.layout.centered
bling.layout.vertical
bling.layout.horizontal
bling.layout.equalarea
2021-08-19 19:20:48 +02:00
bling.layout.deck
2021-02-17 07:01:29 +01:00
```
### Theme Variables
2021-02-17 07:01:29 +01:00
```lua
-- mstab
theme.mstab_bar_disable = false -- disable the tabbar
theme.mstab_bar_ontop = false -- whether you want to allow the bar to be ontop of clients
theme.mstab_dont_resize_slaves = false -- whether the tabbed stack windows should be smaller than the
-- currently focused stack window (set it to true if you use
-- transparent terminals. False if you use shadows on solid ones
theme.mstab_bar_padding = "default" -- how much padding there should be between clients and your tabbar
-- by default it will adjust based on your useless gaps.
-- If you want a custom value. Set it to the number of pixels (int)
theme.mstab_border_radius = 0 -- border radius of the tabbar
theme.mstab_bar_height = 40 -- height of the tabbar
theme.mstab_tabbar_position = "top" -- position of the tabbar (mstab currently does not support left,right)
theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern")
-- defaults to the tabbar_style so only change if you want a
-- different style for mstab and tabbed
2021-02-17 07:01:29 +01:00
```
### Previews
#### Mstab (dynamic tabbing layout)
2021-02-17 07:01:29 +01:00
![](https://imgur.com/HZRgApE.png)
*screenshot by [JavaCafe01](https://github.com/JavaCafe01)*
2021-02-17 07:01:29 +01:00
#### Centered
2021-02-17 07:01:29 +01:00
![](https://media.discordapp.net/attachments/769673106842845194/780095998239834142/unknown.png)
*screenshot by [HeavyRain266](https://github.com/HeavyRain266)*
2021-03-03 12:24:56 +01:00
#### Equal area
![](https://imgur.com/JCFFywv.png)
2021-03-03 12:24:56 +01:00
*screenshot by [bysmutheye](https://github.com/bysmutheye)*
2021-08-19 19:20:48 +02:00
#### Deck
The left area shows the deck layout in action. In this screenshot it is used together with [layout machi](https://github.com/xinhaoyuan/layout-machi) and its sublayout support.
![](https://cdn.discordapp.com/attachments/635625954219261982/877957824225894430/unknown.png)
*screenshot by [JavaCafe01](https://github.com/JavaCafe01)*