Skip to content

Commit 9d012d9

Browse files
committed
rename options -border and -borderw to -bc and -bw
1 parent 07666bc commit 9d012d9

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ or standalone X11 session.
1616
alttab [-w N] [-d N] [-sc N] [-mk <str>] [-kk <str>] [-bk <str>]
1717
[-pk <str>] [-nk <str>] [-ck <str>] [-mm <N>] [-bm <N>]
1818
[-t NxM] [-i NxM] [-vp str] [-p str] [-s N] [-theme name] [-bg color]
19-
[-fg color] [-frame color] [-border color] [-borderw <N>] [-font name]
19+
[-fg color] [-frame color] [-bc color] [-bw <N>] [-font name]
2020
[-vertical] [-v|-vv]
2121
```
2222
(see man page for details)

doc/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ or standalone X11 session.
44
alttab [-w N] [-d N] [-sc N] [-mk <str>] [-kk <str>] [-bk <str>]
55
[-pk <str>] [-nk <str>] [-ck <str>] [-mm <N>] [-bm <N>]
66
[-t NxM] [-i NxM] [-vp str] [-p str] [-s N] [-theme name] [-bg color]
7-
[-fg color] [-frame color] [-border color] [-borderw N] [-font name]
7+
[-fg color] [-frame color] [-bc color] [-bw N] [-font name]
88
[-vertical] [-v|-vv]
99

1010
(see man page for details)

doc/alttab.1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.\" generated with Ronn-NG/v0.9.1
22
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3-
.TH "ALTTAB" "1" "October 2021" ""
3+
.TH "ALTTAB" "1" "December 2021" ""
44
.SH "NAME"
55
\fBalttab\fR \- the task switcher
66
.SH "SYNOPSIS"
7-
\fBalttab\fR [\fB\-w\fR \fIN\fR] [\fB\-d\fR \fIN\fR] [\fB\-sc\fR \fIN\fR] [\fB\-mk\fR \fIstr\fR] [\fB\-kk\fR \fIstr\fR] [\fB\-bk\fR \fIstr\fR] [\fB\-pk\fR \fIstr\fR] [\fB\-nk\fR \fIstr\fR] [\fB\-mm\fR \fIN\fR] [\fB\-bm\fR \fIN\fR] [\fB\-t\fR \fINxM\fR] [\fB\-i\fR \fINxM\fR] [\fB\-vp\fR \fIstr\fR] [\fB\-p\fR \fIstr\fR] [\fB\-s\fR \fIN\fR] [\fB\-theme\fR \fIname\fR] [\fB\-bg\fR \fIcolor\fR] [\fB\-fg\fR \fIcolor\fR] [\fB\-frame\fR \fIcolor\fR] [\fB\-border\fR \fIcolor\fR] [\fB\-borderw\fR \fIN\fR] [\fB\-font\fR \fIname\fR] [\fB\-vertical\fR] [\fB\-v\fR|\fB\-vv\fR]
7+
\fBalttab\fR [\fB\-w\fR \fIN\fR] [\fB\-d\fR \fIN\fR] [\fB\-sc\fR \fIN\fR] [\fB\-mk\fR \fIstr\fR] [\fB\-kk\fR \fIstr\fR] [\fB\-bk\fR \fIstr\fR] [\fB\-pk\fR \fIstr\fR] [\fB\-nk\fR \fIstr\fR] [\fB\-mm\fR \fIN\fR] [\fB\-bm\fR \fIN\fR] [\fB\-t\fR \fINxM\fR] [\fB\-i\fR \fINxM\fR] [\fB\-vp\fR \fIstr\fR] [\fB\-p\fR \fIstr\fR] [\fB\-s\fR \fIN\fR] [\fB\-theme\fR \fIname\fR] [\fB\-bg\fR \fIcolor\fR] [\fB\-fg\fR \fIcolor\fR] [\fB\-frame\fR \fIcolor\fR] [\fB\-bc\fR \fIcolor\fR] [\fB\-bw\fR \fIN\fR] [\fB\-font\fR \fIname\fR] [\fB\-vertical\fR] [\fB\-v\fR|\fB\-vv\fR]
88
.SH "DESCRIPTION"
99
The task switcher designed for minimalistic window managers or standalone X11 session\.
1010
.P
@@ -228,19 +228,19 @@ default: \fI#a0abab\fR
228228
.IP
229229
Color of frame around selected tile\.
230230
.TP
231-
\fB\-border\fR \fIcolor\fR
231+
\fB\-bc\fR \fIcolor\fR
232232
resource: alttab\.bordercolor
233233
.br
234234
default: \fIblack\fR
235235
.IP
236-
Color of additional border around the entire switcher\.
236+
Color of extra border around the entire switcher\. This border may look redundant\. Do not confuse with \fB\-frame\fR\.
237237
.TP
238-
\fB\-borderw\fR \fIN\fR
238+
\fB\-bw\fR \fIN\fR
239239
resource: alttab\.borderwidth
240240
.br
241-
default: \fI0\fR (no border)
241+
default: \fI0\fR (no extra border)
242242
.IP
243-
Width of border above\.
243+
Width of extra border above\.
244244
.TP
245245
\fB\-font\fR \fIname\fR
246246
resource: alttab\.font

doc/alttab.1.ronn

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ alttab(1) -- the task switcher
1616

1717
## SYNOPSIS
1818

19-
`alttab` [`-w` <N>] [`-d` <N>] [`-sc` <N>] [`-mk` <str>] [`-kk` <str>] [`-bk` <str>] [`-pk` <str>] [`-nk` <str>] [`-mm` <N>] [`-bm` <N>] [`-t` <NxM>] [`-i` <NxM>] [`-vp` <str>] [`-p` <str>] [`-s` <N>] [`-theme` <name>] [`-bg` <color>] [`-fg` <color>] [`-frame` <color>] [`-border` <color>] [`-borderw` <N>] [`-font` <name>] [`-vertical`] [`-v`\|`-vv`]
19+
`alttab` [`-w` <N>] [`-d` <N>] [`-sc` <N>] [`-mk` <str>] [`-kk` <str>] [`-bk` <str>] [`-pk` <str>] [`-nk` <str>] [`-mm` <N>] [`-bm` <N>] [`-t` <NxM>] [`-i` <NxM>] [`-vp` <str>] [`-p` <str>] [`-s` <N>] [`-theme` <name>] [`-bg` <color>] [`-fg` <color>] [`-frame` <color>] [`-bc` <color>] [`-bw` <N>] [`-font` <name>] [`-vertical`] [`-v`\|`-vv`]
2020

2121
## DESCRIPTION
2222

@@ -265,17 +265,17 @@ The following three options accept color names or <#rrggbb>. Special value <&#95
265265

266266
Color of frame around selected tile.
267267

268-
* `-border` <color>:
268+
* `-bc` <color>:
269269
resource: alttab.bordercolor
270270
default: <black>
271271

272-
Color of additional border around the entire switcher.
272+
Color of extra border around the entire switcher. This border may look redundant. Do not confuse with `-frame`.
273273

274-
* `-borderw` <N>:
274+
* `-bw` <N>:
275275
resource: alttab.borderwidth
276-
default: <0> (no border)
276+
default: <0> (no extra border)
277277

278-
Width of border above.
278+
Width of extra border above.
279279

280280
* `-font` <name>:
281281
resource: alttab.font

src/alttab.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ Options:\n\
6868
-bg color background color\n\
6969
-fg color foreground color\n\
7070
-frame color active frame color\n\
71-
-border color border color\n\
72-
-borderw N border width\n\
71+
-bc color extra border color\n\
72+
-bw N extra border width\n\
7373
-font name font name in the form xft:fontconfig_pattern\n\
7474
-v|-vv verbose\n\
7575
-h help\n\
@@ -123,8 +123,8 @@ static int use_args_and_xrm(int *argc, char **argv)
123123
{"-bg", "*background", XrmoptionSepArg, NULL},
124124
{"-fg", "*foreground", XrmoptionSepArg, NULL},
125125
{"-frame", "*framecolor", XrmoptionSepArg, NULL},
126-
{"-border", "*bordercolor", XrmoptionSepArg, NULL},
127-
{"-borderw", "*borderwidth", XrmoptionSepArg, NULL},
126+
{"-bc", "*bordercolor", XrmoptionSepArg, NULL},
127+
{"-bw", "*borderwidth", XrmoptionSepArg, NULL},
128128
{"-font", "*font", XrmoptionSepArg, NULL},
129129
{"-vertical", "*vertical", XrmoptionIsArg, NULL}
130130
};
@@ -355,16 +355,16 @@ static int use_args_and_xrm(int *argc, char **argv)
355355
if (bw >= BORDER_MIN)
356356
g.option_borderW = bw;
357357
else
358-
die(inv, "borderw argument range");
358+
die(inv, "bw argument range");
359359
break;
360360
case 0:
361361
g.option_borderW = DEFBORDERW;
362362
break;
363363
case -1:
364-
die(inv, "borderw argument");
364+
die(inv, "bw argument");
365365
break;
366366
}
367-
msg(0, "borderw: %d\n", g.option_borderW);
367+
msg(0, "bw: %d\n", g.option_borderW);
368368

369369
bzero(&(g.option_vp), sizeof(g.option_vp));
370370
g.option_vp_mode = VP_DEFAULT;

0 commit comments

Comments
 (0)