{"id":"17ee0887-f697-4f95-bc9c-13be6d30ccef","task":"Script window placement and workspace switching from the command line with wmctrl","domain":"mankier.com","steps":["List all windows with their IDs, desktop number, and title using wmctrl -l","List available desktops/workspaces with wmctrl -d","Switch the active workspace with wmctrl -s <desktop-number> (0-indexed)","Move a window to a workspace and follow it with wmctrl -r \"Window Title\" -t <desktop-number>","Resize/move a window in place with wmctrl -r \"Window Title\" -e 0,<x>,<y>,<w>,<h>"],"gotchas":["-r matches window titles as a case-insensitive substring by default, so scripts targeting generically-titled apps can hit the wrong window; add -x to match by WM_CLASS instead for stable targeting","wmctrl only works with EWMH/NetWM-compliant window managers — some minimal tiling WMs don't fully implement the spec, so -d/-s desktop operations can silently no-op","Like xdotool, wmctrl talks to X11 and has no Wayland support, so it no-ops or errors under GNOME's or KDE's native Wayland sessions"],"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":"sampled","url":"https://mcp.waymark.network/r/17ee0887-f697-4f95-bc9c-13be6d30ccef"}