My Qtile window manager configuration
git clone https://github.com/m-col/qtile-config
Files | Refs | Readme

Commit a697c7466142effd5459898ba697d702379f5335
Parent: c6329158c18ebbb122b0d05cd7cfc2884b92ba02
Author: mcol <mcol@posteo.net>
Date: 2022-10-10 21:01:21 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2022-10-10 21:01:21 +0100

update per decorators PR

x11.py Modified

@@ -38,7 +38,7 @@
 @hook.subscribe.client_new
 def _(window):
     if window.window.get_wm_type() == "desktop":
-        window.cmd_static(qtile.current_screen.index)
+        window.static(qtile.current_screen.index)
         return
 
     hints = window.window.get_wm_normal_hints()

wayland.py Modified

@@ -150,4 +150,4 @@
     @hook.subscribe.startup_once
     async def _():
         await asyncio.sleep(0.5)
-        qtile.cmd_reconfigure_screens()
+        qtile.reconfigure_screens()

tags.py Modified

@@ -57,7 +57,7 @@
     for name, match, windows in tags:
         if name == to_toggle:
             for window in windows:
-                window.cmd_toggle_minimize()
+                window.toggle_minimize()
             return
 
 

groups.py Modified

@@ -49,18 +49,18 @@
 
     def _inner(qtile: Qtile) -> None:
         if len(qtile.screens) == 1:
-            qtile.groups_map[name].cmd_toscreen(toggle=True)
+            qtile.groups_map[name].toscreen(toggle=True)
             return
 
         old = qtile.current_screen.group.name
         if name in "1234":
             qtile.focus_screen(0)
             if old in "1234" or qtile.current_screen.group.name != name:
-                qtile.groups_map[name].cmd_toscreen(toggle=True)
+                qtile.groups_map[name].toscreen(toggle=True)
         else:
             qtile.focus_screen(1)
             if old in "qwer" or qtile.current_screen.group.name != name:
-                qtile.groups_map[name].cmd_toscreen(toggle=True)
+                qtile.groups_map[name].toscreen(toggle=True)
 
     return _inner
 
@@ -94,7 +94,7 @@
         if len(qtile.screens) == 1:
             current = qtile.groups.index(qtile.current_group)
             destination = (current + direction) % 8
-            qtile.groups[destination].cmd_toscreen()
+            qtile.groups[destination].toscreen()
             return
 
         current = qtile.groups.index(qtile.current_group)
@@ -102,7 +102,7 @@
             destination = (current + direction) % 4
         else:
             destination = ((current - 4 + direction) % 4) + 4
-        qtile.groups[destination].cmd_toscreen()
+        qtile.groups[destination].toscreen()
 
     return _inner
 
@@ -119,8 +119,8 @@
 def _():
     # Set initial groups
     if len(qtile.screens) > 1:
-        qtile.groups_map["1"].cmd_toscreen(0, toggle=False)
-        qtile.groups_map["q"].cmd_toscreen(1, toggle=False)
+        qtile.groups_map["1"].toscreen(0, toggle=False)
+        qtile.groups_map["q"].toscreen(1, toggle=False)
         qtile.focus_screen(1)
 
 
@@ -129,6 +129,6 @@
     # Set groups to screens
     if len(qtile.screens) > 1:
         if qtile.screens[0].group.name not in "1234":
-            qtile.groups_map["1"].cmd_toscreen(0, toggle=False)
+            qtile.groups_map["1"].toscreen(0, toggle=False)
         if qtile.screens[1].group.name in "1234":
-            qtile.groups_map["q"].cmd_toscreen(1, toggle=False)
+            qtile.groups_map["q"].toscreen(1, toggle=False)

config.py Modified

@@ -115,7 +115,7 @@
     """Bring all floating windows of the group to front"""
     for window in qtile.current_group.windows:
         if window.floating:
-            window.cmd_bring_to_front()
+            window.bring_to_front()
 
 
 my_keys.extend(
@@ -705,7 +705,7 @@
     for window in qtile.windows_map.values():
         if isinstance(window, base.Static):
             if hasattr(window, "cmd_bring_to_front"):
-                window.cmd_bring_to_front()
+                window.bring_to_front()
 
 
 reconfigure_screens = True