-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwjt.1
174 lines (174 loc) · 3.41 KB
/
wjt.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.TH WJT 1 wjt\-VERSION
.SH NAME
wjt \- slider widget
.SH SYNOPSIS
.B wjt
.RB [ \-v ]
.RB [ \-b ]
.RB [ \-lv ]
.RB [ \-le ]
.RB [ \-m
.IR monnum ]
.RB [ \-w
.IR winid ]
.RB [ \-p
.IR prompt ]
.RB [ \-f
.IR font ]
.RB [ \-pb
.IR color ]
.RB [ \-pf
.IR color ]
.RB [ \-sb
.IR color ]
.RB [ \-sf
.IR color ]
.RB [ \-vb
.IR color ]
.RB [ \-vf
.IR color ]
.RB [ \-l
.IR lower ]
.RB [ \-u
.IR upper ]
.RB [ \-s
.IR step ]
.RB [ \-j
.IR jump ]
.RB [ \-x
.IR value ]
.RB [ \-z
.IR special ]
.P
.SH DESCRIPTION
.B wjt
is a slider widget for the X Window System that allows the user to select
values within a range using the keyboard or mouse. It presents a bar at the
top or bottom of the display with a slider area including legend labels, and
optionally, a prompt on the left. When the user adjusts the slider position,
its value is printed to stdout. wjt grabs keyboard and mouse input while
running.
.P
wjt was inspired by, and its code is based on,
.BR dmenu (1).
.P
.SH OPTIONS
.TP
.B \-v
Print version information to stdout and exit.
.TP
.B \-b
Display wjt at the bottom of the display.
.TP
.B \-le
Disable drawing labels for the slider extents.
.TP
.B \-lv
Disable drawing a label for the slider value.
.TP
.BI \-m " monnum"
Display wjt on monitor number monnum. Monitor numbers start at 0.
.TP
.BI \-w " winid"
Embed wjt into the window with id winid.
.TP
.BI \-p " prompt"
Specify a prompt to be displayed to the left of the slider.
.TP
.BI \-f " font"
Specify the font or font set to use.
.TP
.BI \-pb " color"
Specify the prompt background color.
.IR #RGB ,
.IR #RRGGBB ,
and X color names are supported.
.TP
.BI \-pf " color"
Specify the prompt foreground color.
.TP
.BI \-sb " color"
Specify the color of the slider beyond the slider value.
.TP
.BI \-sf " color"
Specify the extent label color.
.TP
.BI \-vb " color"
Specify the color of the slider up to the slider value.
.TP
.BI \-vf " color"
Specify the slider value label color.
.TP
.BI \-l " lower"
Specify the lower bound of the slider (default: 0).
.TP
.BI \-u " upper"
Specify the upper bound of the slider (default: 100).
.TP
.BI \-s " step"
Specify the size of a small change in the slider value (default: 1).
.TP
.BI \-j " jump"
Specify the size of a large change in the slider value (default: 10).
.TP
.BI \-x " value"
Specify the initial value of the slider (default: 0).
.TP
.BI \-z " special"
Specify special text to emit when the user presses Space or clicks the middle
mouse button.
.SH MOUSE CONTROLS
.TP
.B Left click or drag
Adjust the slider value.
.TP
.B Middle click
Emit special text if specified.
.TP
.B ScrollUp
Increase the slider value one step.
.TP
.B ScrollDown
Decrease the slider value one step.
.TP
.B C-ScrollUp
Increase the slider value one jump.
.TP
.B C-ScrollDown
Decrease the slider value one jump.
.TP
.B Right click
Exit with status 0.
.SH KEYBOARD CONTROLS
.TP
.B ` 1 2 3 4 5 6 7 8 9 0
Map to 10% increments through the slider range: ` to 0%, 1 to 10%, ..., 9 to 90%, 0 to 100%.
.TP
.B Home C\-a g
Set the slider value to the lower bound.
.TP
.B End C\-e G
Set the slider value to the upper bound.
.TP
.B Left C\-b h -
Decrease the slider value one step.
.TP
.B Right C\-f l + =
Increase the slider value one step.
.TP
.B PageDown Down C\-p j
Decrease the slider value one jump.
.TP
.B PageUp Up C\-n k
Increase the slider value one jump.
.TP
.B Space
Emit special text if specified.
.TP
.B Enter C\-m C\-j
Exit with status 0.
.TP
.B Escape C\-[ C\-c
Exit with status 1.
.SH SEE ALSO
.BR dmenu (1)