mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
first try of manpage cleanup
This commit is contained in:
parent
27f5c7413e
commit
e90abbbcf0
1 changed files with 164 additions and 178 deletions
|
@ -69,7 +69,7 @@ daemon listening to specific key-combination or emulating dmenu.
|
||||||
|
|
||||||
### Single-shot mode
|
### Single-shot mode
|
||||||
|
|
||||||
To launch **rofi** directly in a certain mode, specifying `rofi -show <mode>`.
|
To launch **rofi** directly in a certain mode, specify a mode with `rofi -show <mode>`.
|
||||||
To show the run dialog:
|
To show the run dialog:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -78,8 +78,8 @@ To show the run dialog:
|
||||||
|
|
||||||
### Daemon mode
|
### Daemon mode
|
||||||
|
|
||||||
To launch **rofi** in daemon mode don't specify a mode to show (`-show <mode>`), instead you can
|
To launch **rofi** in daemon mode don't specify any mode, instead keys can be bound
|
||||||
bind keys to launch a certain mode. To have run mode open when pressing `F2` start **rofi** like:
|
to launch a certain mode. To show run-mode by pressing `F2` start **rofi** like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
rofi -key-run F2
|
rofi -key-run F2
|
||||||
|
@ -102,14 +102,14 @@ There are currently three methods of setting configuration options:
|
||||||
This is the recommended way of configuring **rofi**.
|
This is the recommended way of configuring **rofi**.
|
||||||
* Command-line options: Arguments passed to **rofi**.
|
* Command-line options: Arguments passed to **rofi**.
|
||||||
|
|
||||||
The Xresources options and the command-line options are aliased. So to set option X you would set:
|
The Xresources file expects options starting with `rofi.` followed by it's name. An Example to set the number of lines:
|
||||||
|
|
||||||
rofi.X: value
|
rofi.lines: 10
|
||||||
|
|
||||||
In the Xresources file, and to (override) this via the command-line you would pass the same key
|
Command line options override settings from Xresources file. The same option set as argument:
|
||||||
prefixed with a '-':
|
prefixed with a '-':
|
||||||
|
|
||||||
rofi -X value
|
rofi -lines 10
|
||||||
|
|
||||||
To get a list of available options, formatted as Xresources entries run:
|
To get a list of available options, formatted as Xresources entries run:
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ The configuration system supports the following types:
|
||||||
* Char
|
* Char
|
||||||
* Boolean
|
* Boolean
|
||||||
|
|
||||||
The boolean option has a non-default command-line syntax, to enable option X you do:
|
Boolean options have a non-default command-line syntax. Example to enable option X:
|
||||||
|
|
||||||
-X
|
-X
|
||||||
|
|
||||||
|
@ -138,18 +138,15 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
Set the key combination to display a {mode} in daemon mode.
|
Set the key combination to display a {mode} in daemon mode.
|
||||||
|
|
||||||
|
|
||||||
rofi -key-run F12
|
rofi -key-run F12
|
||||||
rofi -key-ssh control+shift+s
|
rofi -key-ssh control+shift+s
|
||||||
rofi -key-window mod1+Tab
|
rofi -key-window mod1+Tab
|
||||||
|
|
||||||
`-dmenu`
|
`-dmenu`
|
||||||
|
|
||||||
Run **rofi** in dmenu mode. Allowing it to be used for user interaction in scripts.
|
Run **rofi** in dmenu mode. This allows for interactive scripts.
|
||||||
|
In `dmenu` mode, **rofi** reads from STDIN, and output to STDOUT.
|
||||||
In `dmenu` mode, **rofi** will read input from STDIN, and will output to STDOUT by default.
|
A simple example, display 3 pre-defined options:
|
||||||
|
|
||||||
Example to let the user choose between three pre-defined options:
|
|
||||||
|
|
||||||
echo -e "Option #1\nOption #2\nOption #3" | rofi -dmenu
|
echo -e "Option #1\nOption #2\nOption #3" | rofi -dmenu
|
||||||
|
|
||||||
|
@ -157,24 +154,21 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
~/my_script.sh | rofi -dmenu
|
~/my_script.sh | rofi -dmenu
|
||||||
|
|
||||||
Pressing `shift-enter` will open the selected entries and move to the next entry.
|
Pressing `shift-enter` sends the selected entry to STDOUT and moves to the next entry.
|
||||||
|
|
||||||
`-show` *mode*
|
`-show` *mode*
|
||||||
|
|
||||||
Open **rofi** in a certain mode.
|
Open **rofi** in a certain mode. Available modes are `window`, `run`, `ssh`
|
||||||
|
To show the run-dialog:
|
||||||
For example to show the run-dialog:
|
|
||||||
|
|
||||||
rofi -show run
|
rofi -show run
|
||||||
|
|
||||||
This function deprecates -rnow,-snow and -now
|
|
||||||
|
|
||||||
`-switchers` *mode1,mode1*
|
|
||||||
`-modi` *mode1,mode1*
|
`-modi` *mode1,mode1*
|
||||||
|
|
||||||
Give a comma separated list of modes to enable, in what order.
|
Specify a ordered, comma separated list of modes to enable.
|
||||||
|
Enabled modes can be changed at runtime. Default key is Ctrl+Tab.
|
||||||
For example to only show the run and ssh launcher (in that order):
|
If no modes are specified all modes will be enabled.
|
||||||
|
To only show the run and ssh launcher:
|
||||||
|
|
||||||
rofi -modi "run,ssh" -show run
|
rofi -modi "run,ssh" -show run
|
||||||
|
|
||||||
|
@ -182,7 +176,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
<name>:<script>
|
<name>:<script>
|
||||||
|
|
||||||
So to have a mode 'Workspaces' using the `i3_switch_workspace.sh` script type:
|
Example: Have a mode 'Workspaces' using the `i3_switch_workspace.sh` script:
|
||||||
|
|
||||||
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
||||||
|
|
||||||
|
@ -200,18 +194,19 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-filter` *filter*
|
`-filter` *filter*
|
||||||
|
|
||||||
Preset user filter to *filter* in the entry box and pre-filter the list.
|
Filter the list by setting text in input bar to *filter*
|
||||||
|
|
||||||
|
|
||||||
### Theming
|
### Theming
|
||||||
|
|
||||||
|
All colors are either hex #rrggbb values or X11 color names.
|
||||||
`-bg`
|
`-bg`
|
||||||
|
|
||||||
`-bg-active`
|
`-bg-active`
|
||||||
|
|
||||||
`-bg-urgent`
|
`-bg-urgent`
|
||||||
|
|
||||||
Set the background text color (X11 named color or hex #rrggbb) for the menu.
|
Set background color in menu.
|
||||||
|
|
||||||
rofi -bg "#222222"
|
rofi -bg "#222222"
|
||||||
|
|
||||||
|
@ -219,7 +214,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-bgalt`
|
`-bgalt`
|
||||||
|
|
||||||
Set the background text color for alternating rows (X11 named color or hex #rrggbb) for the menu.
|
Set background color for alternating rows in menu.
|
||||||
|
|
||||||
rofi -bgalt "#222222"
|
rofi -bgalt "#222222"
|
||||||
|
|
||||||
|
@ -227,7 +222,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-bc`
|
`-bc`
|
||||||
|
|
||||||
Set the border color (X11 named color or hex #rrggbb) for the menu.
|
Set border color for menu.
|
||||||
|
|
||||||
rofi -bc black
|
rofi -bc black
|
||||||
|
|
||||||
|
@ -235,7 +230,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-bw`
|
`-bw`
|
||||||
|
|
||||||
Set the border width in pixels.
|
Set border width in pixels.
|
||||||
|
|
||||||
rofi -bw 1
|
rofi -bw 1
|
||||||
|
|
||||||
|
@ -247,7 +242,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-fg-active`
|
`-fg-active`
|
||||||
|
|
||||||
Set the foreground text color (X11 named color or hex #rrggbb) for the menu.
|
Set foreground text color for the menu.
|
||||||
|
|
||||||
rofi -fg "#cccccc"
|
rofi -fg "#cccccc"
|
||||||
|
|
||||||
|
@ -260,8 +255,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-hlbg-urgent`
|
`-hlbg-urgent`
|
||||||
|
|
||||||
Set the background text color (X11 named color or hex #rrggbb) for the highlighted item in the
|
Set background color for the highlighted item in the menu.
|
||||||
menu.
|
|
||||||
|
|
||||||
rofi -hlbg "#005577"
|
rofi -hlbg "#005577"
|
||||||
|
|
||||||
|
@ -273,8 +267,7 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-hlfg-urgent`
|
`-hlfg-urgent`
|
||||||
|
|
||||||
Set the foreground text color (X11 named color or hex #rrggbb) for the highlighted item in the
|
Set foreground text color for the highlighted item in the menu.
|
||||||
menu.
|
|
||||||
|
|
||||||
rofi -hlfg "#ffffff"
|
rofi -hlfg "#ffffff"
|
||||||
|
|
||||||
|
@ -282,16 +275,15 @@ Below is a list of the most important options:
|
||||||
|
|
||||||
`-font`
|
`-font`
|
||||||
|
|
||||||
Pango font name for use by the menu.
|
Specify a font. Pango syntax is used.
|
||||||
|
|
||||||
|
rofi -font "Dejavu Sans Mono 14"
|
||||||
rofi -font monospace\ 14
|
|
||||||
|
|
||||||
Default: *mono 12*
|
Default: *mono 12*
|
||||||
|
|
||||||
`-opacity`
|
`-opacity`
|
||||||
|
|
||||||
Set the window opacity (0-100).
|
Set window opacity (0-100).
|
||||||
|
|
||||||
rofi -opacity "75"
|
rofi -opacity "75"
|
||||||
|
|
||||||
|
@ -333,7 +325,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-separator-style` *style*
|
`-separator-style` *style*
|
||||||
|
|
||||||
Set the separator style, either "solid" or "dash"
|
Set separator style. Possible options are "solid" or "dash".
|
||||||
|
|
||||||
Default: *dash*
|
Default: *dash*
|
||||||
|
|
||||||
|
@ -341,7 +333,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-lines`
|
`-lines`
|
||||||
|
|
||||||
Maximum number of lines the menu may show before scrolling.
|
Maximum number of lines to show before scrolling.
|
||||||
|
|
||||||
rofi -lines 25
|
rofi -lines 25
|
||||||
|
|
||||||
|
@ -349,7 +341,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-columns`
|
`-columns`
|
||||||
|
|
||||||
The number of columns the menu may show before scrolling.
|
Number of columns to show before scrolling.
|
||||||
|
|
||||||
rofi -columns 2
|
rofi -columns 2
|
||||||
|
|
||||||
|
@ -357,15 +349,15 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-width` [value]
|
`-width` [value]
|
||||||
|
|
||||||
Set the width of the menu as a percentage of the screen width.
|
Set width of menu. `[value]` is specified in percentage.
|
||||||
|
|
||||||
rofi -width 60
|
rofi -width 60
|
||||||
|
|
||||||
If value is larger then 100, the size is set in pixels. e.g. to span a full hd monitor:
|
If `[value]` is larger then 100, size is set in pixels. Example to span a full hd monitor:
|
||||||
|
|
||||||
rofi -width 1920
|
rofi -width 1920
|
||||||
|
|
||||||
If the value is negative, it tries to estimates a character width. To show 30 characters on a row:
|
If `[value]` is negative, it tries to estimates a character width. To show 30 characters on a row:
|
||||||
|
|
||||||
rofi -width -30
|
rofi -width -30
|
||||||
|
|
||||||
|
@ -375,8 +367,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-location`
|
`-location`
|
||||||
|
|
||||||
Specify where the window should be located. The numbers map to the following location on the
|
Specify where the window should be located. The numbers map to the following locations on screen:
|
||||||
monitor:
|
|
||||||
|
|
||||||
1 2 3
|
1 2 3
|
||||||
8 0 4
|
8 0 4
|
||||||
|
@ -396,7 +387,8 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-sidebar-mode`
|
`-sidebar-mode`
|
||||||
|
|
||||||
Go into side-bar mode, it will show list of modi at the bottom.
|
Open in sidebar-mode. In this mode a list of all enabled modes is shown at the bottom.
|
||||||
|
(See `-modi` option)
|
||||||
To show sidebar use:
|
To show sidebar use:
|
||||||
|
|
||||||
rofi -show run -sidebar-mode -lines 0
|
rofi -show run -sidebar-mode -lines 0
|
||||||
|
@ -412,7 +404,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-auto-select`
|
`-auto-select`
|
||||||
|
|
||||||
When one entry is left, automatically select this.
|
When one entry is left, automatically select it.
|
||||||
|
|
||||||
`-m` *num*
|
`-m` *num*
|
||||||
`-monitor` *num*
|
`-monitor` *num*
|
||||||
|
@ -451,21 +443,20 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-parse-hosts`
|
`-parse-hosts`
|
||||||
|
|
||||||
Parse the `/etc/hosts` files for entries.
|
Parse the `/etc/hosts` file for entries.
|
||||||
|
|
||||||
|
|
||||||
### Run settings
|
### Run settings
|
||||||
|
|
||||||
`-run-command` *cmd*
|
`-run-command` *cmd*
|
||||||
|
|
||||||
Set the command (*{cmd}*) to execute when running an application.
|
Set command (*{cmd}*) to execute when running an application.
|
||||||
See *PATTERN*.
|
See *PATTERN*.
|
||||||
|
|
||||||
Default: *{cmd}*
|
Default: *{cmd}*
|
||||||
|
|
||||||
`-run-shell-command` *cmd*
|
`-run-shell-command` *cmd*
|
||||||
|
|
||||||
Set the command to execute when running an application in a shell.
|
Set command to execute when running an application in a shell.
|
||||||
See *PATTERN*.
|
See *PATTERN*.
|
||||||
|
|
||||||
Default: *{terminal} -e {cmd}*
|
Default: *{terminal} -e {cmd}*
|
||||||
|
@ -480,7 +471,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-combi-modi` *mode1,mode2*
|
`-combi-modi` *mode1,mode2*
|
||||||
|
|
||||||
The modi to combine in the combi mode.
|
The modi to combine in combi mode.
|
||||||
For syntax to see `-modi`.
|
For syntax to see `-modi`.
|
||||||
To get one merge view, of window,run,ssh:
|
To get one merge view, of window,run,ssh:
|
||||||
|
|
||||||
|
@ -502,7 +493,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-sep` *separator*
|
`-sep` *separator*
|
||||||
|
|
||||||
Separator for dmenu. For example to show list a to e with '|' as separator:
|
Separator for dmenu. Example: To show list 'a' to 'e' with '|' as separator:
|
||||||
|
|
||||||
echo "a|b|c|d|e" | rofi -sep '|' -dmenu
|
echo "a|b|c|d|e" | rofi -sep '|' -dmenu
|
||||||
|
|
||||||
|
@ -530,7 +521,7 @@ The following options are further explained in the theming section:
|
||||||
|
|
||||||
`-i`
|
`-i`
|
||||||
|
|
||||||
Makes dmenu match menu entries case insensitively.
|
Makes dmenu searches case-insensitive
|
||||||
|
|
||||||
`-a` *X*
|
`-a` *X*
|
||||||
|
|
||||||
|
@ -594,7 +585,7 @@ For more information on supported markup see [here](https://developer.gnome.org/
|
||||||
'-pid' *path*
|
'-pid' *path*
|
||||||
|
|
||||||
Make **rofi** create a pid file and check this on startup. Avoiding multiple copies running
|
Make **rofi** create a pid file and check this on startup. Avoiding multiple copies running
|
||||||
simultaneous. This is useful when running **rofi** from a keybinding daemon.
|
simultaneously. This is useful when running **rofi** from a keybinding daemon.
|
||||||
|
|
||||||
### Debug
|
### Debug
|
||||||
|
|
||||||
|
@ -622,7 +613,6 @@ the following keys can be used that will be replaced at runtime:
|
||||||
If `argv[0]` (calling command) is dmenu, **rofi** will start in dmenu mode.
|
If `argv[0]` (calling command) is dmenu, **rofi** will start in dmenu mode.
|
||||||
This way it can be used as a drop-in replacement for dmenu. just copy or symlink **rofi** to dmenu in `$PATH`.
|
This way it can be used as a drop-in replacement for dmenu. just copy or symlink **rofi** to dmenu in `$PATH`.
|
||||||
|
|
||||||
|
|
||||||
ln -s /usr/bin/dmenu /usr/bin/rofi
|
ln -s /usr/bin/dmenu /usr/bin/rofi
|
||||||
|
|
||||||
## SIGNALS
|
## SIGNALS
|
||||||
|
@ -681,19 +671,15 @@ rofi -color-normal "#fdf6e3,#002b36,#eee8d5,#586e75,#eee8d5"
|
||||||
|
|
||||||
## COLORS
|
## COLORS
|
||||||
|
|
||||||
Rofi has an experimental mode for a 'nicer' transparency. The idea is that you can make the
|
Rofi has an experimental mode for a 'nicer' transparency. The idea is to make the
|
||||||
background of the window transparent but the text not. This way, in contrast to the `-opacity`
|
background of the window transparent, leaving the text opaque.
|
||||||
option, the text is still fully visible and readable.
|
There are 2 requirements for this feature: 1. Your Xserver supports TrueColor, 2. You are running a
|
||||||
To use this there are 2 requirements: 1. Your Xserver supports TrueColor, 2. You are running a
|
|
||||||
composite manager. If this is satisfied you can use the following format for colors:
|
composite manager. If this is satisfied you can use the following format for colors:
|
||||||
|
|
||||||
argb:FF444444
|
argb:FF444444
|
||||||
|
|
||||||
The first two fields specify the alpha level. This determines how much the background shines through
|
The first two fields specify the alpha level. This determines the amount of transparency.
|
||||||
the color (00 everything, FF nothing). E.g. 'argb:00FF0000' gives you a bright red color with the
|
(00 everything, FF nothing). The other fields represent the actual color, in hex.
|
||||||
background shining through. If you want a dark greenish transparent color use: 'argb:dd2c3311'. This
|
|
||||||
can be done for any color; it is therefore possible to have solid borders, the selected row solid,
|
|
||||||
and the others slightly transparent.
|
|
||||||
|
|
||||||
## KEYBINDINGS
|
## KEYBINDINGS
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue