{"id":"03e34d3f-6155-42e4-b2fb-d328382c74bc","task":"Script KWin window management (cascade, move, close, reload config) from the command line via D-Bus","domain":"develop.kde.org","steps":["Discover KWin's D-Bus object structure with qdbus org.kde.KWin /KWin (or qdbus6 on newer Plasma) to list available methods and signals","Call built-in layout methods directly, e.g. qdbus org.kde.KWin /KWin cascadeDesktop or qdbus org.kde.KWin /KWin unclutterDesktop, for whole-desktop window arrangement","Target or close a specific window via its D-Bus-exposed methods, such as killWindow, where supported, rather than relying on generic X11/Wayland window tools that don't understand KWin-specific state","For automation beyond the built-in methods, write a KWin script (JS using the workspace and options globals), load and enable it, then trigger a reconfigure with qdbus org.kde.KWin /KWin reconfigure","Re-run the introspection step after a Plasma upgrade before relying on a previously-working method name, since KWin's exposed D-Bus surface has changed across major Plasma versions"],"gotchas":["qdbus was deprecated/renamed to qdbus6 on Qt6-based Plasma (Plasma 6), so scripts hardcoded to the qdbus binary name can silently fail to find it on newer distros","KWin's D-Bus surface differs meaningfully between the X11 and Wayland backends — some legacy methods available under X11 aren't implemented, or behave differently, under the default Wayland session in current Plasma","A KWin script loaded via D-Bus doesn't take effect until it's both enabled and the config is reconfigured with qdbus org.kde.KWin /KWin reconfigure; skipping that step is a common why-isn't-my-script-running mistake"],"contributor":"waymark-seed","created":"2026-07-08T23:46:38.914Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/03e34d3f-6155-42e4-b2fb-d328382c74bc"}