tREADME: C syntax highlighting and consistent shell snippets - libwm - X windows manipulation library
(HTM) git clone git://z3bra.org/libwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 494b84789b936c2804178074e8944e6abe918b97
(DIR) parent ece2c328acd72459a705412f10f9d0dd9e4e2b00
(HTM) Author: theFerdi265 <theferdi265@gmail.com>
Date: Tue, 4 Oct 2016 10:44:42 +0200
README: C syntax highlighting and consistent shell snippets
Diffstat:
M README.md | 48 ++++++++++++++++---------------
1 file changed, 25 insertions(+), 23 deletions(-)
---
(DIR) diff --git a/README.md b/README.md
t@@ -6,28 +6,30 @@ A small library for X window manipulation
Here is the full list of all the functions provided by `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_atom_string(wid, atom, **value);
- wm_get_screen();
- wm_get_windows(wid, **list);
- wm_get_focus();
- 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);
- wm_reg_event(wid, mask);
+```c
+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_atom_string(wid, atom, **value);
+wm_get_screen();
+wm_get_windows(wid, **list);
+wm_get_focus();
+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);
+wm_reg_event(wid, mask);
+```
Their usage is specified in the `wm.h` header file, as it is quite small for
now.
t@@ -44,4 +46,4 @@ The makefile supports 2 macros: DESTDIR and PREFIX.
To link your program against it, compile it as follows:
- cc pgm.c -lwm -o pgm
+ $ cc pgm.c -lwm -o pgm