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

Commit b20d662fc47ccb38598417385ad4a6aa85eda18a
Parent: 5974fea51738bf2489248a7a73597e147de36630
Author: mcol <mcol@posteo.net>
Date: 2021-09-02 20:52:30 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-09-02 20:52:30 +0100

x11: Make desktop windows static right away

x11.py Modified

@@ -4,7 +4,7 @@
 
 import os
 
-from libqtile import hook
+from libqtile import hook, qtile
 from libqtile.lazy import lazy
 
 IS_XEPHYR = int(os.environ.get("QTILE_XEPHYR", 0))
@@ -29,6 +29,10 @@
 # Auto-float some windows
 @hook.subscribe.client_new
 def _(window):
+    if window.window.get_wm_type() == "desktop":
+        window.cmd_static(qtile.current_screen.index)
+        return
+
     hints = window.window.get_wm_normal_hints()
     if hints and 0 < hints['max_width'] < 1920:
         window.floating = True