from libqtile import layout from libqtile.config import Match LAYOUT_DEFAULTS = dict( margin=3, border_width=0, grow_amount=2, ) floating_layout_defaults = LAYOUT_DEFAULTS.copy() layouts = [ layout.MonadTall( name="Monad", auto_maximize=True, change_ratio=0.05, change_size=20, ratio=0.55, min_ratio=0.30, max_ratio=0.75, single_border_width=0, **LAYOUT_DEFAULTS, ), layout.VerticalTile( **LAYOUT_DEFAULTS, ), ] floating_layout = layout.Floating( float_rules=[ *layout.Floating.default_float_rules, Match(wm_class="confirmreset"), # gitk Match(wm_class="makebranch"), # gitk Match(wm_class="maketag"), # gitk Match(wm_class="ssh-askpass"), # ssh-askpass Match(wm_class="nm-connection-editor"), # networkmanager Match(title="branchdialog"), # gitk Match(title="pinentry"), # GPG key password entry Match(title="FloatWindow"), Match(wm_class="qalculate-qt"), Match(wm_class="copyq"), Match(wm_class="nitrogen"), Match(wm_class="nemo-preview-start"), Match(wm_class="wireguird"), Match(wm_class="blueman-manager"), Match(wm_class="pavucontrol"), Match(wm_class="org.gnome.FileRoller"), Match(wm_class="lximage-qt"), Match(wm_class="matplotlib"), ], **floating_layout_defaults, )