dotfiles/.config/qtile/settings/layouts.py

44 lines
1023 B
Python
Raw Normal View History

2022-04-23 21:36:03 +02:00
# 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.Max(),
# layout.Columns(),
# layout.Tile(),
# layout.TreeTab(),
# 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]
)