mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Add 'modi' alias for 'switchers' and update manpage.
This commit is contained in:
parent
c0a409185b
commit
df7b98ac7f
3 changed files with 17 additions and 14 deletions
|
@ -32,7 +32,7 @@ rofi - A window switcher, run dialog and dmenu replacement
|
||||||
[ -levenshtein-sort ]
|
[ -levenshtein-sort ]
|
||||||
[ -case-sensitive ]
|
[ -case-sensitive ]
|
||||||
[ -show *mode* ]
|
[ -show *mode* ]
|
||||||
[ -switcher *mode1,mode2* ]
|
[ -modi *mode1,mode2* ]
|
||||||
[ -eh *element height* ]
|
[ -eh *element height* ]
|
||||||
[ -lazy-filter-limit *limit* ]
|
[ -lazy-filter-limit *limit* ]
|
||||||
[ -e *message*]
|
[ -e *message*]
|
||||||
|
@ -89,12 +89,13 @@ daemon listening to specific key-combinations.
|
||||||
This function deprecates -rnow,-snow and -now
|
This function deprecates -rnow,-snow and -now
|
||||||
|
|
||||||
`-switchers` *mode1,mode1*
|
`-switchers` *mode1,mode1*
|
||||||
|
`-modi` *mode1,mode1*
|
||||||
|
|
||||||
Give a comma separated list of modes to enable, in what order.
|
Give a comma separated list of modes to enable, in what order.
|
||||||
|
|
||||||
For example to only show the run and ssh dialog (in that order):
|
For example to only show the run and ssh launcher (in that order):
|
||||||
|
|
||||||
rofi -switchers "run,ssh" -show run
|
rofi -modi "run,ssh" -show run
|
||||||
|
|
||||||
Custom modes can be added using the internal 'script' mode. Each mode has two parameters:
|
Custom modes can be added using the internal 'script' mode. Each mode has two parameters:
|
||||||
|
|
||||||
|
@ -102,7 +103,7 @@ daemon listening to specific key-combinations.
|
||||||
|
|
||||||
So to have a mode 'Workspaces' using the `i3_switch_workspace.sh` script type:
|
So to have a mode 'Workspaces' using the `i3_switch_workspace.sh` script type:
|
||||||
|
|
||||||
rofi -switchers "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
||||||
|
|
||||||
`-case-sensitive`
|
`-case-sensitive`
|
||||||
|
|
||||||
|
@ -372,7 +373,7 @@ daemon listening to specific key-combinations.
|
||||||
|
|
||||||
## PATTERN
|
## PATTERN
|
||||||
|
|
||||||
To launch commands (e.g. when using the ssh dialog) the user can enter the used commandline,
|
To launch commands (e.g. when using the ssh launcher) the user can enter the used commandline,
|
||||||
the following keys can be used that will be replaced at runtime:
|
the following keys can be used that will be replaced at runtime:
|
||||||
|
|
||||||
* `{host}`: The host to connect to.
|
* `{host}`: The host to connect to.
|
||||||
|
@ -436,8 +437,8 @@ Rofi supports the following keybindings:
|
||||||
* `Page Down`: Go to the next page
|
* `Page Down`: Go to the next page
|
||||||
* `Ctrl-Page Up`: Go to the previous column
|
* `Ctrl-Page Up`: Go to the previous column
|
||||||
* `Ctrl-Page Down`: Go to the next column
|
* `Ctrl-Page Down`: Go to the next column
|
||||||
* `Ctrl-Enter`: Use entered text as command (in ssh/run dialog)
|
* `Ctrl-Enter`: Use entered text as command (in ssh/run modi)
|
||||||
* `Shift-Enter`: Launch the application in a terminal (in run dialog)
|
* `Shift-Enter`: Launch the application in a terminal (in run mode)
|
||||||
* `Shift-Enter`: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
* `Shift-Enter`: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
||||||
* `Shift-Right`: Switch to the next modi. The list can be customized with the `-switchers` argument.
|
* `Shift-Right`: Switch to the next modi. The list can be customized with the `-switchers` argument.
|
||||||
* `Shift-Left`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
|
* `Shift-Left`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
|
||||||
|
|
15
doc/rofi.1
15
doc/rofi.1
|
@ -30,7 +30,7 @@ rofi \- A window switcher, run dialog and dmenu replacement
|
||||||
[ \-levenshtein\-sort ]
|
[ \-levenshtein\-sort ]
|
||||||
[ \-case\-sensitive ]
|
[ \-case\-sensitive ]
|
||||||
[ \-show \fImode\fP ]
|
[ \-show \fImode\fP ]
|
||||||
[ \-switcher \fImode1,mode2\fP ]
|
[ \-modi \fImode1,mode2\fP ]
|
||||||
[ \-eh \fIelement height\fP ]
|
[ \-eh \fIelement height\fP ]
|
||||||
[ \-lazy\-filter\-limit \fIlimit\fP ]
|
[ \-lazy\-filter\-limit \fIlimit\fP ]
|
||||||
[ \-e \fImessage\fP]
|
[ \-e \fImessage\fP]
|
||||||
|
@ -88,14 +88,15 @@ For example to show the run\-dialog:
|
||||||
This function deprecates \-rnow,\-snow and \-now
|
This function deprecates \-rnow,\-snow and \-now
|
||||||
.PP
|
.PP
|
||||||
\fB\fC\-switchers\fR \fImode1,mode1\fP
|
\fB\fC\-switchers\fR \fImode1,mode1\fP
|
||||||
|
\fB\fC\-modi\fR \fImode1,mode1\fP
|
||||||
.IP
|
.IP
|
||||||
Give a comma separated list of modes to enable, in what order.
|
Give a comma separated list of modes to enable, in what order.
|
||||||
.IP
|
.IP
|
||||||
For example to only show the run and ssh dialog (in that order):
|
For example to only show the run and ssh launcher (in that order):
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
rofi \-switchers "run,ssh" \-show run
|
rofi \-modi "run,ssh" \-show run
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.IP
|
.IP
|
||||||
|
@ -111,7 +112,7 @@ So to have a mode 'Workspaces' using the \fB\fCi3_switch_workspace.sh\fR script
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
rofi \-switchers "window,run,ssh,Workspaces:i3_switch_workspaces.sh" \-show Workspaces
|
rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" \-show Workspaces
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
|
@ -456,7 +457,7 @@ simultaneous. This is useful when running rofi from a keybinding daemon.
|
||||||
Dump the current active configuration in xresources format to the command\-line.
|
Dump the current active configuration in xresources format to the command\-line.
|
||||||
.SH PATTERN
|
.SH PATTERN
|
||||||
.PP
|
.PP
|
||||||
To launch commands (e.g. when using the ssh dialog) the user can enter the used commandline,
|
To launch commands (e.g. when using the ssh launcher) the user can enter the used commandline,
|
||||||
the following keys can be used that will be replaced at runtime:
|
the following keys can be used that will be replaced at runtime:
|
||||||
.RS
|
.RS
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
|
@ -549,9 +550,9 @@ Rofi supports the following keybindings:
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCCtrl\-Page Down\fR: Go to the next column
|
\fB\fCCtrl\-Page Down\fR: Go to the next column
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCCtrl\-Enter\fR: Use entered text as command (in ssh/run dialog)
|
\fB\fCCtrl\-Enter\fR: Use entered text as command (in ssh/run modi)
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCShift\-Enter\fR: Launch the application in a terminal (in run dialog)
|
\fB\fCShift\-Enter\fR: Launch the application in a terminal (in run mode)
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
|
|
|
@ -54,6 +54,7 @@ typedef struct
|
||||||
*/
|
*/
|
||||||
static XrmOption xrmOptions[] = {
|
static XrmOption xrmOptions[] = {
|
||||||
{ xrm_String, "switchers", { .str = &config.switchers }, NULL },
|
{ xrm_String, "switchers", { .str = &config.switchers }, NULL },
|
||||||
|
{ xrm_String, "modi", { .str = &config.switchers }, NULL },
|
||||||
{ xrm_Number, "opacity", { .num = &config.window_opacity }, NULL },
|
{ xrm_Number, "opacity", { .num = &config.window_opacity }, NULL },
|
||||||
|
|
||||||
{ xrm_SNumber, "width", { .snum = &config.menu_width }, NULL },
|
{ xrm_SNumber, "width", { .snum = &config.menu_width }, NULL },
|
||||||
|
|
Loading…
Reference in a new issue