fixed depreceated qtile commands

This commit is contained in:
paul-loedige
2021-11-01 20:14:15 +01:00
parent 66949c6761
commit 3225a2b8d3
+12 -18
View File
@@ -1,4 +1,5 @@
from libqtile import layout from libqtile import layout
from libqtile.config import Match
from defines import focus_color, border_width, window_margin from defines import focus_color, border_width, window_margin
@@ -8,7 +9,7 @@ layouts = [
border_focus = focus_color, border_focus = focus_color,
border_width = border_width, border_width = border_width,
margin=window_margin, margin=window_margin,
new_at_current = True, new_client_position = 'after_current',
), ),
layout.Floating( layout.Floating(
border_focus = focus_color, border_focus = focus_color,
@@ -19,7 +20,7 @@ layouts = [
layout.MonadWide( layout.MonadWide(
border_focus = focus_color, border_focus = focus_color,
border_width = border_width, border_width = border_width,
new_at_current = True, new_client_position = 'after_current',
margin=window_margin, margin=window_margin,
), ),
layout.Columns( layout.Columns(
@@ -35,20 +36,13 @@ floating_layout = layout.Floating(
border_width = border_width, border_width = border_width,
float_rules=[ float_rules=[
# Run the utility of `xprop` to see the wm class and name of an X client. # Run the utility of `xprop` to see the wm class and name of an X client.
{'wmclass': 'confirm'}, *layout.Floating.default_float_rules,
{'wmclass': 'dialog'}, Match(wm_class='confirmreset'), # gitk
{'wmclass': 'download'}, Match(wm_class='makebranch'), # gitk
{'wmclass': 'error'}, Match(wm_class='maketag'), # gitk
{'wmclass': 'file_progress'}, Match(title='branchdialog'), # gitk
{'wmclass': 'notification'}, Match(title='pinentry'), # GPG key password entry
{'wmclass': 'splash'}, Match(wm_class='ssh-askpass'), # ssh-askpass
{'wmclass': 'toolbar'}, Match(wm_class='sun-awt-X11-XWindowPeer'), #matlab
{'wmclass': 'confirmreset'}, # gitk Match(wm_class='sun-awt-X11-XDialogPeer'), #matlab
{'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
]) ])