Skip to content
/ libwm Public
forked from wmutils/libwm

A small library for X windows manipulation

License

Notifications You must be signed in to change notification settings

connLAN/libwm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libwm

A small library for X window manipulation

documentation

Here is the full list of all the function you can use from libwm:

wm_init_xcb();
wm_kill_xcb();
wm_is_alive(wid);
wm_is_ignored(wid);
wm_is_listable(wid, mask);
wm_is_mapped(wid);
wm_get_focus();
wm_get_screen();
wm_get_windows(wid, **list);
wm_get_attribute(wid, attr);
wm_get_cursor(mode, wid, *x, *y);
wm_set_border(width, color, wid);
wm_set_focus(wid);
wm_set_cursor(x, y, mode);
wm_set_override(wid, mode);
wm_teleport(wid, w, h, x, y);
wm_move(wid, mode, x, y);
wm_remap(wid, mode);
wm_resize(wid, mode, w, h);
wm_restack(wid, mode);

Their usage is specified in the wm.h header file, as it is quite small for now.

installation

libwm provides two files: libwm.a and wm.h.
You can build/install them as follow:

$ make
# make install

The makefile supports 2 macros: DESTDIR and PREFIX.

Then to link your program against it, compile it as follow:

cc pgm.c -lwm -o pgm

About

A small library for X windows manipulation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 95.2%
  • Makefile 4.8%