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

noxz.tech/software/xrectdraw/index.www
1usage:
2.B xrectdraw
3.U x
4.U y
5.U width
6.U height
7.U #RRGGBB
8.U t:r:b:l ] [
9
10A small program used to draw rectangles on X11. The idea came when I needed
11something to indicate screen recordings for a small script using ffmpeg. I used
12xrectsel for selecting the region for ffmpeg to capture, so I kinda got the
13inspiration from there.
14
15xrectdraw actually draws four windows making up the borders of the rectangle.
16This means no compositor is needed, the root window isn't hogged and the region
17is not overlaid.
18
19.HnS 1
20Installation
21.HnE
22
23Edit config.mk to match your local setup (xrectdraw is installed into the
24.I /usr/local
25namespace by default), then simply enter the following command to install (if
26necessary as root):
27
28.CDS
29.COS
30make clean install
31.COE
32.CDE
33
34.HnS 1
35Customization
36.HnE
37
38xrectdraw can be customized by creating a custom config.h and (re)compiling the
39source code.
40
41.HnS 1
42Usage
43.HnE
44
45Together with the source code is a script called
46.ICD screenrec.sh
47which is a fine example of how xrectdraw can be used. The program is used like
48this:
49
50.CDS
51.COS
52xrectdraw 10 20 100 200 \\#ff0000 3:2:3:2
53.COE
54.CDE
55
56The example above draws a rectangle, 100px wide, 200px heigh at the position
57(x:10px, y:20px). The borders are red, the top and bottom are 3px wide and the
58right and left are 2pc wide.
59
60.HnS 1
61License
62.HnE
63
64The project is licensed under the MIT license.
65
66get source
67.URL //noxz.tech/git/xrectdraw.git here .