summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/rofi-manpage.markdown12
-rw-r--r--doc/rofi.123
-rw-r--r--source/dialogs/dmenu.c3
3 files changed, 33 insertions, 5 deletions
diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown
index 76447a94..96a29bff 100644
--- a/doc/rofi-manpage.markdown
+++ b/doc/rofi-manpage.markdown
@@ -493,15 +493,23 @@ The following options are further explained in the theming section:
Default: *dmenu*
-`-l` *selected line*
+`-row` *selected line*
Select a certain line.
Default: *0*
+`-l` *number of lines to show*
+
+ Maximum number of lines the menu may show before scrolling.
+
+ rofi -lines 25
+
+ Default: *15*
+
`-i`
- Number mode, return the index of the selected row. (starting at 0)
+ Makes dmenu match menu entries case insensitively.
`-a` *X*
diff --git a/doc/rofi.1 b/doc/rofi.1
index 7215f477..afc3377c 100644
--- a/doc/rofi.1
+++ b/doc/rofi.1
@@ -871,7 +871,7 @@ Default: *dmenu*
.IP "" 0
.
.P
-\fB\-l\fR \fIselected line\fR
+\fB\-row\fR \fIselected line\fR
.
.IP "" 4
.
@@ -886,13 +886,32 @@ Default: *0*
.IP "" 0
.
.P
+\fB\-l\fR \fInumber of lines to show\fR
+.
+.P
+Maximum number of lines the menu may show before scrolling\.
+.
+.IP "" 4
+.
+.nf
+
+ rofi \-lines 25
+.
+.fi
+.
+.IP "" 0
+.
+.P
+Default: \fI15\fR
+.
+.P
\fB\-i\fR
.
.IP "" 4
.
.nf
-Number mode, return the index of the selected row\. (starting at 0)
+Makes dmenu match menu entries case insensitively\.
.
.fi
.
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c
index 1a270359..0e97fe68 100644
--- a/source/dialogs/dmenu.c
+++ b/source/dialogs/dmenu.c
@@ -197,7 +197,7 @@ int dmenu_switcher_dialog ( char **input )
find_arg_str ( "-format", &format );
// Check prompt
find_arg_str ( "-p", &dmenu_prompt );
- find_arg_int ( "-l", &selected_line );
+ find_arg_int ( "-row", &selected_line );
// Urgent.
char *str = NULL;
find_arg_str ( "-u", &str );
@@ -234,6 +234,7 @@ int dmenu_switcher_dialog ( char **input )
g_strfreev ( tokens );
}
+ find_arg_uint ( "-l", &(config.menu_lines));
/**
* Dmenu compatibility.