From 6aaea9cf4b283d41016e60735f52c8feb3cd0c9e Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 22 Aug 2023 19:46:15 +0100 Subject: Initial commit --- .config/qtile/layouts.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .config/qtile/layouts.py (limited to '.config/qtile/layouts.py') diff --git a/.config/qtile/layouts.py b/.config/qtile/layouts.py new file mode 100644 index 0000000..94c8b6b --- /dev/null +++ b/.config/qtile/layouts.py @@ -0,0 +1,56 @@ +# Justine Smithies +# https://github.com/justinesmithies/qtile-wayland-dotfiles + +# Layout configuration + +from libqtile import layout +from libqtile.config import Match +from colors import colors + +# DEFAULT THEME SETTINGS FOR LAYOUTS # +layout_theme = {"border_width": 2, + "margin": 10, + "border_focus": '#33eeffee', + "border_normal": colors['dark0'] + } + +layouts = [ + layout.MonadTall(**layout_theme, single_border_width=2), + layout.Stack(num_stacks=2, **layout_theme), + # layout.Max(), + # Try more layouts by unleashing below layouts. + layout.Bsp(**layout_theme), + layout.Columns(**layout_theme), + +] + +floating_layout = layout.Floating( + **layout_theme, + float_rules=[ + # Run the utility of `xprop` to see the wm class and name of an X client. + # *layout.Floating.default_float_rules, + Match(title='Quit and close tabs?'), + Match(wm_type='utility'), + Match(wm_type='notification'), + Match(wm_type='toolbar'), + Match(wm_type='splash'), + Match(wm_type='dialog'), + Match(wm_class='gimp-2.99'), + Match(wm_class='Firefox'), + Match(wm_class='file_progress'), + Match(wm_class='confirm'), + Match(wm_class='dialog'), + Match(wm_class='download'), + Match(wm_class='error'), + Match(wm_class='notification'), + Match(wm_class='splash'), + Match(wm_class='toolbar'), + Match(title='About LibreOffice'), + Match(wm_class='confirmreset'), # gitk + Match(wm_class='makebranch'), # gitk + Match(wm_class='maketag'), # gitk + Match(wm_class='ssh-askpass'), # ssh-askpass + Match(title='branchdialog'), # gitk + Match(title='pinentry'), # GPG key password entry + ], +) -- cgit v1.2.3