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),
|
2022-04-24 15:59:44 +02:00
|
|
|
#layout.Matrix(columns=2, **layout_conf),
|
2022-04-23 21:36:03 +02:00
|
|
|
layout.RatioTile(**layout_conf),
|
2022-04-24 15:59:44 +02:00
|
|
|
#layout.Columns(),
|
|
|
|
#layout.Tile(),
|
|
|
|
layout.TreeTab(),
|
2022-04-23 21:36:03 +02:00
|
|
|
layout.Max(),
|
2022-04-24 15:59:44 +02:00
|
|
|
#layout.VerticalTile(),
|
|
|
|
#layout.Zoomy(),
|
2022-04-23 21:36:03 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
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]
|
|
|
|
)
|