Skip to content

Latest commit

 

History

History

x11-manager

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

X11 Manager

This capability aims at: provide X11 window and desktop control via libxcb.

References

  1. Extended Window Manager Hints - freedesktop.org
  2. pyewmh - github.com
  3. leftwm - github.com

Dependency

  • cargo, libxcb-util-dev

Structure

  • src (the Rust source code)

Build

  • Manually build:

    cargo build --release

Test

cargo test -- --nocapture

TODO

  • 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 and desktop 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"