This capability aims at: provide X11 window and desktop control via libxcb
.
cargo
,libxcb-util-dev
src
(the Rust source code)
-
Manually build:
cargo build --release
cargo test -- --nocapture
-
get/set number of desktops
-
get/set current focused desktop
-
get window props by "substring match":
- if multiple windows match, return all as a list;
- return
geometry
,window state
anddesktop index
, e.g.,wmctrl -lG
; - together return with current screen geometry; (if screens disconnected, shrink to the northwest corner)
-
get window props by "window xid" or "_NET_WM_PID"
-
set window props by "window xid"