-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsxcs.1
94 lines (94 loc) · 1.89 KB
/
sxcs.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.TH SXCS 1 "Jun 2024" "sxcs v1.1.0"
.SH NAME
sxcs - Minimal X11 color picker and magnifier
.SH SYNOPSIS
sxcs [\fBoptions\fR]
.SH DESCRIPTION
.B sxcs
is a minimal X11 color picker and magnifier.
Mouse
.B Button1
will select and print the color to stdout.
The output is TAB separated hex, rgb and hsl.
.B "Scroll Up/Down"
will zoom in and out.
Any other mouse button will quit sxcs.
.P
The keyboard can also be used when
.B --keyboard
is enabled.
The arrow keys
.BR Left ", " Right ", " Up ", " Down
as well as vi-like
.BR h ", " j ", " k ", " l
are supported for moving the cursor.
By default they move by 16 pixels, if
.B Control
is used then they move by 1 pixel, otherwise if
.B Shift
is used they move by 128 pixels instead.
.B Space
makes a selection.
.BR q " and " Escape
quits.
.BR + " and " -
zooms in and out.
.SH OPTIONS
.TP
.BR "--color-none"
disable color output.
.TP
.BR "--hex"
output hex colors.
.TP
.BR "--rgb"
output rgb colors.
.TP
.BR "--hsl"
output hsl colors.
.TP
.BR "--mag-none"
disable magnifier.
.TP
.BI "--mag-filters " "filters"
comma separated list of filter to apply in order.
See the FILTERS section.
.TP
.BR "-o, --one-shot"
quit after a single selection.
.TP
.BR "-q, --quit-on-keypress"
quit on keypress.
.TP
.BR "-k, --keyboard"
enable keyboard control.
.TP
.BR "-h, --help"
Show usage and exit.
.TP
.BR "--version"
Show version and exit.
.SH FILTERS
List of available filters:
.TP
.B "square"
draws a square border.
.TP
.B "xhair"
draws a square crosshair.
.TP
.B "grid"
draws grid.
.TP
.B "circle"
draws a circle.
.SH "EXIT STATUS"
sxcs exits with status 0 on success, non-zero on abnormal termination.
.SH AUTHORS
NRK <[email protected]>
.SH BUGS
.SS "Reporting Bugs"
For reporting bugs, either open an issue under the Codeberg repo
<https://codeberg.org/NRK/sxcs> or send an email to <[email protected]>.
.SS "Known Bugs"
Visual glitches may occur if the cursor size is too big (typically 255x255).