-
Notifications
You must be signed in to change notification settings - Fork 0
/
clubar.1.tmpl
231 lines (209 loc) · 4.2 KB
/
clubar.1.tmpl
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
.TH APPNAME 1 APPNAME-APPVERSION
.SH
APPNAME
.PP
APPNAME \- Simple statusbar program.
.SH
SYNOPSIS
.PP
APPNAME
[\fIOPTIONS\fR]...
.SH
DESCRIPTION
.PP
A minimalistic, flexible statusbar program (mainly as a utility for window managers).
.RS 4
+ - - - - - - - - margin - - - - - - - - +
.RE
.RS 4
¦ +------------------------------------+ ¦
.RE
.RS 4
¦ | + - - - - - - padding - - - - - -+ | ¦
.RE
.RS 4
¦ | ¦stdin WM_NAME¦ | ¦
.RE
.RS 4
¦ | +- - - - - - - - - - - - - - - - + | ¦
.RE
.RS 4
¦ +------------------------------------+ ¦
.RE
.RS 4
+- - - - - - - - - - - - - - - - - - - - +
.RE
\fImargin\fR is the empty space outside of the bar window.
.br
\fIpadding\fR is the space between the bar window edges and the drawing region.
.br
\fIstdin\fR text is typically provided by the window manager.
.br
\fIWM_NAME\fR (of the root window) can be set using the xsetroot command.
.br
.SH
OPTIONS
.PP
\fV\-h, \-\-help\fR
.RS
print this help message.
.RE
.PP
\fV\-v, \-\-version\fR
.RS
print version.
.RE
.PP
\fV\-t, \-\-topbar\fR
.RS
window position (top/bottom edge of the screen).
.RE
.PP
\fV\-c \fIfile\fR,
\fV\-\-config\fR[=\fIfile\fR]
.RS
filepath for runtime configs (supports: lua).
.RE
.PP
\fV\-g \fIvalues\fR,
\fV\-\-geometry\fR[=\fIvalues\fR]
.RS
window geometry as 'x,y,width,height' (eg: '0,0,1280,720').
.RE
.PP
\fV\-p \fIvalues\fR,
\fV\-\-padding\fR[=\fIvalues\fR]
.RS
window padding as 'left,right,top,bot' (eg: '0,0,10,10').
.RE
.PP
\fV\-m \fIvalues\fR,
\fV\-\-margin\fR[=\fIvalues\fR]
.RS
window margin as 'left,right,top,bot' (eg: '0,0,10,10').
.RE
.PP
\fV\-f \fIcolor\fR,
\fV\-\-foreground\fR[=\fIcolor\fR]
.RS
set default foreground color.
.RE
.PP
\fV\-b \fIcolor\fR,
\fV\-\-background\fR[=\fIcolor\fR]
.RS
set default background color.
.RE
.PP
\fV\-\-fonts\fR[=\fIvalues\fR]
.RS
comma seperated fonts (eg: 'arial-10,monospace-10:bold').
.RE
.SH
SIGNALS
.PP
\fBUSR1:\fR toggle window visibility (e.g. pkill -USR1 APPNAME).
.PP
\fBUSR2:\fR Reload configurations from external config file without reloading.
.SH
STYLING TEMPLATE
.PP
<Tag:Mod1|Mod2|...|Modn=Value> Text </Tag>
.SH
TAGS
.PP
\fBFn:\fR <Fn=\fINumber\fR> ... </Fn>
.RS 4
\fINumber\fR: Index of 'fonts' array from configs (default: 0).
.RE
.PP
\fBFg:\fR <Fg=\fIColor\fR> ... </Fg>
.RS 4
\fIColor\fR: Valid color name.
.RE
.PP
\fBBg:\fR <Bg=\fIColor\fR> ... </Bg>
.RS 4
\fIColor\fR: Valid color name.
.RE
.PP
\fBBox:\fR <Box=\fIColor\fR> ... </Box> <Box=\fIColor\fR:\fISize\fR> ... </Box> <Box:\fIMod1\fR|\fIMod2\fR=\fIColor\fR:\fISize\fR> ... </Box>
.RS 4
\fIColor\fR: valid color name.
.br
\fISize\fR: size (default: 0) in pixels.
.br
\fIMods\fR: Left, Right, Top, Bottom
.RE
.PP
\fBBtnL:\fR <BtnL=\fICommand\fR> ... </BtnL> <BtnL:\fIMod1\fR|\fIMod2\fR=\fICommand\fR> ... </BtnL>
.RS 4
\fICommand\fR: Raw command
.br
\fIMods\fR: Shift, Ctrl, Super, Alt
.RE
.PP
\fBBtnM:\fR <BtnM=\fICommand\fR> ... </BtnM> <BtnM:\fIMod1\fR|\fIMod2\fR=\fICommand\fR> ... </BtnM>
.RS 4
\fICommand\fR: Raw command
.br
\fIMods\fR: Shift, Ctrl, Super, Alt
.RE
.PP
\fBBtnR:\fR <BtnR=\fICommand\fR> ... </BtnR> <BtnR:\fIMod1\fR|\fIMod2\fR=\fICommand\fR> ... </BtnR>
.RS 4
\fICommand\fR: Raw command
.br
\fIMods\fR: Shift, Ctrl, Super, Alt
.RE
.PP
\fBScrlU:\fR <ScrlU=\fICommand\fR> ... </ScrlU> <ScrlU:\fIMod1\fR|\fIMod2\fR=\fICommand\fR> ... </ScrlU>
.RS 4
\fICommand\fR: Raw command
.br
\fIMods\fR: Shift, Ctrl, Super, Alt
.RE
.PP
\fBScrlD:\fR <ScrlD=\fICommand\fR> ... </ScrlD> <ScrlD:\fIMod1\fR|\fIMod2\fR=\fICommand\fR> ... </ScrlD>
.RS 4
\fICommand\fR: Raw command
.br
\fIMods\fR: Shift, Ctrl, Super, Alt
.RE
.SH
EXAMPLES
.PP
<Fn=1><Fg=#131313> Colored </Fg> text with <Bg=#c6c6c6> background</Bg></Fn>.
.PP
<Box:Bottom=#ffffff:1> underlined </Box> text.
.PP
<Box:Top|Bottom|Left|Right=#ffffff:1> Boxed in </Box> text.
.PP
<BtnL=systemctl reboot> reboot </BtnL>
.PP
<BtnL:Ctrl|Shift=sudo -A reboot now> reboot w/ confirmation </BtnL>
.PP
<ScrlU:Ctrl=amixer sset Master 5%+>
.RS 4
<ScrlD:Ctrl=amixer sset Master 5%->
.RE
.RS 8
volume
.RE
.RS 4
</ScrlD>
.RE
</ScrlU>
.RE
.SH
AUTHOR
.PP
Written by Abhishek Kadam <lycuid@gmail.com>
.SH
BUGS
.PP
Submit issues at <\fIhttps://github.com/lycuid/APPNAME/issues/\fR>
.SH
COPYRIGHT
.PP
License GPLv3 <\fIhttps://gnu.org/licenses/gpl.html\fR>.