diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown index f2364edd..1d255b0b 100644 --- a/doc/rofi-manpage.markdown +++ b/doc/rofi-manpage.markdown @@ -11,7 +11,7 @@ SYNOPSIS `rofi` [ -width *pct_scr* ] [ -lines *lines* ] [ -columns *columns* ] [ -font *xftfont* ] [ -fg *color* ] [ -bg *color* ] [ -hlfg *color* ] [ -hlbg *color* ] [ -key *combo* ] [ -dkey *comdo* ] [ -rkey *comdo* ] -[ -terminal *terminal* ] [ -loc *position* ] [ -hmode ] [ -fixed-num-lines ] [ -padding *padding* ] +[ -terminal *terminal* ] [ -location *position* ] [ -hmode ] [ -fixed-num-lines ] [ -padding *padding* ] [ -opacity *opacity%* ] [ -display *display* ] [ -bc *color* ] [ -bw *width* ] [ -dmenu [ -p *prompt* ] ] [ -ssh-set-title *true|false* ] [ -now ] [ -rnow ] [ -snow ] [ -version ] [ -help] [ -dump-xresources ] [ -disable-history ] [ -levenshtein-sort ] [ -show *mode* ] [ -switcher *mode1,mode2* ] @@ -171,7 +171,7 @@ OPTIONS rofi -terminal xterm -`-loc` +`-location` Specify where the window should be located. The numbers map to the following location on the monitor: diff --git a/doc/rofi.1 b/doc/rofi.1 index 574c7a17..dec98d5d 100644 --- a/doc/rofi.1 +++ b/doc/rofi.1 @@ -6,7 +6,7 @@ rofi \- A window switcher, run dialog and dmenu replacement .PP \fB\fCrofi\fR [ \-width \fIpct_scr\fP ] [ \-lines \fIlines\fP ] [ \-columns \fIcolumns\fP ] [ \-font \fIxftfont\fP ] [ \-fg \fIcolor\fP ] [ \-bg \fIcolor\fP ] [ \-hlfg \fIcolor\fP ] [ \-hlbg \fIcolor\fP ] [ \-key \fIcombo\fP ] [ \-dkey \fIcomdo\fP ] [ \-rkey \fIcomdo\fP ] -[ \-terminal \fIterminal\fP ] [ \-loc \fIposition\fP ] [ \-hmode ] [ \-fixed\-num\-lines ] [ \-padding \fIpadding\fP ] +[ \-terminal \fIterminal\fP ] [ \-location \fIposition\fP ] [ \-hmode ] [ \-fixed\-num\-lines ] [ \-padding \fIpadding\fP ] [ \-opacity \fIopacity%\fP ] [ \-display \fIdisplay\fP ] [ \-bc \fIcolor\fP ] [ \-bw \fIwidth\fP ] [ \-dmenu [ \-p \fIprompt\fP ] ] [ \-ssh\-set\-title \fItrue|false\fP ] [ \-now ] [ \-rnow ] [ \-snow ] [ \-version ] [ \-help] [ \-dump\-xresources ] [ \-disable\-history ] [ \-levenshtein\-sort ] [ \-show \fImode\fP ] [ \-switcher \fImode1,mode2\fP ] @@ -210,7 +210,7 @@ Specify what terminal to start (default x\-terminal\-emulator) .fi .RE .PP -\fB\fC\-loc\fR +\fB\fC\-location\fR .PP .RS .nf diff --git a/source/rofi.c b/source/rofi.c index dde94c52..bbe0de74 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1916,7 +1916,7 @@ static void parse_cmd_options ( int argc, char ** argv ) find_arg_int ( argc, argv, "-bw", &( config.menu_bw ) ); // Parse commandline arguments about size and position - find_arg_int ( argc, argv, "-loc", &( config.location ) ); + find_arg_int ( argc, argv, "-location", &( config.location ) ); find_arg_int ( argc, argv, "-padding", &( config.padding ) ); find_arg_int ( argc, argv, "-xoffset", &( config.x_offset ) ); find_arg_int ( argc, argv, "-yoffset", &( config.y_offset ) ); diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 4cc2b317..75382905 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -87,7 +87,6 @@ static XrmOption xrmOptions[] = { { xrm_Number, "bw", { .num = &config.menu_bw }, NULL }, { xrm_Number, "location", { .num = &config.location }, NULL }, - { xrm_Number, "loc", { .num = &config.location }, NULL }, { xrm_Number, "padding", { .num = &config.padding }, NULL }, { xrm_Number, "yoffset", { .num = &config.y_offset }, NULL },