dotfiles/.config/qtile/settings/layouts.py
2022-04-24 15:59:44 +02:00

44 lines
1018 B
Python

# Antonio Sarosi
# https://youtube.com/c/antoniosarosi
# https://github.com/antoniosarosi/dotfiles
from libqtile import layout
from libqtile.config import Match
from .theme import colors
# Layouts and layout rules
layout_conf = {
'border_focus': colors['focus'][0],
'border_width': 1,
'margin': 4
}
layouts = [
layout.MonadTall(**layout_conf),
layout.MonadWide(**layout_conf),
layout.Bsp(**layout_conf),
#layout.Matrix(columns=2, **layout_conf),
layout.RatioTile(**layout_conf),
#layout.Columns(),
#layout.Tile(),
layout.TreeTab(),
layout.Max(),
#layout.VerticalTile(),
#layout.Zoomy(),
]
floating_layout = layout.Floating(
float_rules=[
*layout.Floating.default_float_rules,
Match(wm_class='confirmreset'),
Match(wm_class='makebranch'),
Match(wm_class='maketag'),
Match(wm_class='ssh-askpass'),
Match(title='branchdialog'),
Match(title='pinentry'),
],
border_focus=colors["color4"][0]
)