Skip to content

Commit

Permalink
rename options -border and -borderw to -bc and -bw
Browse files Browse the repository at this point in the history
  • Loading branch information
sagb committed Dec 5, 2021
1 parent 07666bc commit 9d012d9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ or standalone X11 session.
alttab [-w N] [-d N] [-sc N] [-mk <str>] [-kk <str>] [-bk <str>]
[-pk <str>] [-nk <str>] [-ck <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]
[-fg color] [-frame color] [-bc color] [-bw <N>] [-font name]
[-vertical] [-v|-vv]
```
(see man page for details)
Expand Down
2 changes: 1 addition & 1 deletion doc/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ or standalone X11 session.
alttab [-w N] [-d N] [-sc N] [-mk <str>] [-kk <str>] [-bk <str>]
[-pk <str>] [-nk <str>] [-ck <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]
[-fg color] [-frame color] [-bc color] [-bw N] [-font name]
[-vertical] [-v|-vv]

(see man page for details)
Expand Down
14 changes: 7 additions & 7 deletions doc/alttab.1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.\" generated with Ronn-NG/v0.9.1
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
.TH "ALTTAB" "1" "October 2021" ""
.TH "ALTTAB" "1" "December 2021" ""
.SH "NAME"
\fBalttab\fR \- the task switcher
.SH "SYNOPSIS"
\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]
\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]
.SH "DESCRIPTION"
The task switcher designed for minimalistic window managers or standalone X11 session\.
.P
Expand Down Expand Up @@ -228,19 +228,19 @@ default: \fI#a0abab\fR
.IP
Color of frame around selected tile\.
.TP
\fB\-border\fR \fIcolor\fR
\fB\-bc\fR \fIcolor\fR
resource: alttab\.bordercolor
.br
default: \fIblack\fR
.IP
Color of additional border around the entire switcher\.
Color of extra border around the entire switcher\. This border may look redundant\. Do not confuse with \fB\-frame\fR\.
.TP
\fB\-borderw\fR \fIN\fR
\fB\-bw\fR \fIN\fR
resource: alttab\.borderwidth
.br
default: \fI0\fR (no border)
default: \fI0\fR (no extra border)
.IP
Width of border above\.
Width of extra border above\.
.TP
\fB\-font\fR \fIname\fR
resource: alttab\.font
Expand Down
12 changes: 6 additions & 6 deletions doc/alttab.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ alttab(1) -- the task switcher

## SYNOPSIS

`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`]
`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`]

## DESCRIPTION

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

Color of frame around selected tile.

* `-border` <color>:
* `-bc` <color>:
resource: alttab.bordercolor
default: <black>

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

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

Width of border above.
Width of extra border above.

* `-font` <name>:
resource: alttab.font
Expand Down
14 changes: 7 additions & 7 deletions src/alttab.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Options:\n\
-bg color background color\n\
-fg color foreground color\n\
-frame color active frame color\n\
-border color border color\n\
-borderw N border width\n\
-bc color extra border color\n\
-bw N extra border width\n\
-font name font name in the form xft:fontconfig_pattern\n\
-v|-vv verbose\n\
-h help\n\
Expand Down Expand Up @@ -123,8 +123,8 @@ static int use_args_and_xrm(int *argc, char **argv)
{"-bg", "*background", XrmoptionSepArg, NULL},
{"-fg", "*foreground", XrmoptionSepArg, NULL},
{"-frame", "*framecolor", XrmoptionSepArg, NULL},
{"-border", "*bordercolor", XrmoptionSepArg, NULL},
{"-borderw", "*borderwidth", XrmoptionSepArg, NULL},
{"-bc", "*bordercolor", XrmoptionSepArg, NULL},
{"-bw", "*borderwidth", XrmoptionSepArg, NULL},
{"-font", "*font", XrmoptionSepArg, NULL},
{"-vertical", "*vertical", XrmoptionIsArg, NULL}
};
Expand Down Expand Up @@ -355,16 +355,16 @@ static int use_args_and_xrm(int *argc, char **argv)
if (bw >= BORDER_MIN)
g.option_borderW = bw;
else
die(inv, "borderw argument range");
die(inv, "bw argument range");
break;
case 0:
g.option_borderW = DEFBORDERW;
break;
case -1:
die(inv, "borderw argument");
die(inv, "bw argument");
break;
}
msg(0, "borderw: %d\n", g.option_borderW);
msg(0, "bw: %d\n", g.option_borderW);

bzero(&(g.option_vp), sizeof(g.option_vp));
g.option_vp_mode = VP_DEFAULT;
Expand Down

0 comments on commit 9d012d9

Please sign in to comment.