From 3225a2b8d3c1798ee4940e63ae79495871ea38ef Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Mon, 1 Nov 2021 20:14:15 +0100 Subject: [PATCH] fixed depreceated qtile commands --- qtile/.config/qtile/Layouts.py | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/qtile/.config/qtile/Layouts.py b/qtile/.config/qtile/Layouts.py index 37587ac..69f1a50 100644 --- a/qtile/.config/qtile/Layouts.py +++ b/qtile/.config/qtile/Layouts.py @@ -1,4 +1,5 @@ from libqtile import layout +from libqtile.config import Match from defines import focus_color, border_width, window_margin @@ -8,7 +9,7 @@ layouts = [ border_focus = focus_color, border_width = border_width, margin=window_margin, - new_at_current = True, + new_client_position = 'after_current', ), layout.Floating( border_focus = focus_color, @@ -19,7 +20,7 @@ layouts = [ layout.MonadWide( border_focus = focus_color, border_width = border_width, - new_at_current = True, + new_client_position = 'after_current', margin=window_margin, ), layout.Columns( @@ -35,20 +36,13 @@ floating_layout = layout.Floating( border_width = border_width, float_rules=[ # Run the utility of `xprop` to see the wm class and name of an X client. - {'wmclass': 'confirm'}, - {'wmclass': 'dialog'}, - {'wmclass': 'download'}, - {'wmclass': 'error'}, - {'wmclass': 'file_progress'}, - {'wmclass': 'notification'}, - {'wmclass': 'splash'}, - {'wmclass': 'toolbar'}, - {'wmclass': 'confirmreset'}, # gitk - {'wmclass': 'makebranch'}, # gitk - {'wmclass': 'maketag'}, # gitk - {'wname': 'branchdialog'}, # gitk - {'wname': 'pinentry'}, # GPG key password entry - {'wmclass': 'ssh-askpass'}, # ssh-askpass - {'wmclass': 'sun-awt-X11-XWindowPeer'}, #matlab - {'wmclass': 'sun-awt-X11-XDialogPeer'}, #matlab + *layout.Floating.default_float_rules, + Match(wm_class='confirmreset'), # gitk + Match(wm_class='makebranch'), # gitk + Match(wm_class='maketag'), # gitk + Match(title='branchdialog'), # gitk + Match(title='pinentry'), # GPG key password entry + Match(wm_class='ssh-askpass'), # ssh-askpass + Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab + Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab ])