noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

commit: 10132dec34c4da8724b5cb3b108c4ecee2c643c5
parent: cd075e34a2fcba85c2c6d7295354b901f3dac96a
author: Chris Noxz <chris@noxz.tech>
date:   Fri, 1 Nov 2019 20:45:41 +0100
Add page for xrectdraw
Mnoxz.tech/software/index.md3++
Anoxz.tech/software/xrectdraw/index.md43++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/noxz.tech/software/index.md b/noxz.tech/software/index.md
@@ -32,6 +32,9 @@ wikipedia pages in your terminal.
 ``ztatus`` creates a status bar for [dwm](https://dwm.suckless.org), and also
 acts as a simple notification daemon.
 
+### [xrectdraw](./xrectdraw/)
+``xrectdraw`` draws geometry of a rectangular screen region for X11.
+
 Tools and scripts
 -----------------
 
diff --git a/noxz.tech/software/xrectdraw/index.md b/noxz.tech/software/xrectdraw/index.md
@@ -0,0 +1,43 @@
+xrectdraw
+=========
+usage: **xrectdraw** <u>x</u> <u>y</u> <u>width</u> <u>height</u>
+<u>#RRGGBB</u> \[<u>t:r:b:l</u>]
+
+A small program used to draw rectangles on X11. The idea came when I needed
+something to indicate screen recordings for a small script using ffmpeg. I used
+xrectsel for selecting the region for ffmpeg to capture, so I kinda got the
+inspiration from there.
+
+xrectdraw actually draws four windows making up the borders of the rectangle.
+This means no compositor is needed, the root window isn't hogged and the region
+is not overlaid.
+
+Installation
+------------
+Edit config.mk to match your local setup (xrectdraw is installed into the
+/usr/local namespace by default), then simply enter the following command to
+install (if necessary as root):
+
+    make clean install
+
+Customization
+-------------
+xrectdraw can be customized by creating a custom config.h and (re)compiling the
+source code.
+
+Usage
+-----
+Together with the source code is a script called *screenrec.sh* which is a fine
+example of how xrectdraw can be used. The program is used like this:
+
+    xrectdraw 10 20 100 200 \#ff0000 3:2:3:2
+
+The example above draws a rectangle, 100px wide, 200px heigh at the position
+(x:10px, y:20px). The borders are red, the top and bottom are 3px wide and the
+right and left are 2pc wide.
+
+License
+-------
+The project is licensed under the MIT license.
+
+get source [here](//git.noxz.tech/xrectdraw/).