Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrmoptions: add element-height alias for eh #1127

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/rofi.1
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ rofi \-show run \-sidebar\-mode \-lines 0
.RE

.PP
\fB\fC\-eh\fR \fInumber\fP
\fB\fC\-eh\fR \fInumber\fP;
\fB\fC\-element\-height\fR \fInumber\fP

.PP
Set row height (in chars)
Expand Down
3 changes: 2 additions & 1 deletion doc/rofi.1.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ To show sidebar, use:

rofi -show run -sidebar-mode -lines 0

`-eh` *number*
`-eh` *number*;
`-element-height` *number*

Set row height (in chars)
Default: *1*
Expand Down
2 changes: 2 additions & 0 deletions source/xrmoptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ static XrmOption xrmOptions[] = {
"Cycle through the results list", CONFIG_DEFAULT },
{ xrm_Boolean, "sidebar-mode", { .num = &config.sidebar_mode }, NULL,
"Enable sidebar-mode", CONFIG_DEFAULT },
{ xrm_SNumber, "element-height", { .snum = &config.element_height }, NULL,
"Row height (in chars)", CONFIG_DEFAULT },
{ xrm_SNumber, "eh", { .snum = &config.element_height }, NULL,
"Row height (in chars)", CONFIG_DEFAULT },
{ xrm_Boolean, "auto-select", { .num = &config.auto_select }, NULL,
Expand Down