diff options
author | Dave Davenport <qball@gmpclient.org> | 2021-06-30 14:12:09 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2021-06-30 14:12:09 +0200 |
commit | 0c304524fb49e641d3da1a86a39f654cf162ca49 (patch) | |
tree | 20dfdac21d02b61d0bad2a992af5368b9f80b93e /doc | |
parent | c1cd4540a44b17409933148bb22e98db38a41306 (diff) |
[Icon|Button] Make action available on icon and use keyb name.
You can now bind a key-binding on mouse click to icons and buttons by setting
"action" property.
For example:
```css
icon-paste {
expand: false;
filename: "gtk-paste";
size: 24;
vertical-align: 0.5;
action: "kb-primary-paste";
}
```
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rofi-theme.5 | 7 | ||||
-rw-r--r-- | doc/rofi-theme.5.markdown | 7 | ||||
-rw-r--r-- | doc/rofi.1 | 13 |
3 files changed, 14 insertions, 13 deletions
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5 index 6c0f53af..f9ff8bfc 100644 --- a/doc/rofi-theme.5 +++ b/doc/rofi-theme.5 @@ -1370,14 +1370,13 @@ This is a textbox widget. The displayed string can be set with \fB\fCstr\fR\&. .IP \(bu 2 \fB\fCicon\fR: This is an icon widget. The displayed icon can be set with \fB\fCfilename\fR and size with \fB\fCsize\fR\&. +If the property \fB\fCaction\fR is set, it acts as a button. +\fB\fCaction\fR can be set to a keybinding name and completes that action. (see rofi \-show keys for a list). .IP \(bu 2 \fB\fCbutton\fR: This is a textbox widget that can have a 'clickable' action. The \fB\fCaction\fR can be set to: -\fB\fCok\fR accept entry. -\fB\fCcustom\fR accept custom input. -\fB\fCok|alternate\fR: accept entry and launch alternate action (for run launch in terminal). -\fB\fCcustom|alternate\fR: accept custom input and launch alternate action. +\fB\fCkeybinding\fR: accepts a keybinging name and completes that action. (see rofi \-show keys for a list). .RE diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown index 1da09bb6..a0170665 100644 --- a/doc/rofi-theme.5.markdown +++ b/doc/rofi-theme.5.markdown @@ -848,13 +848,12 @@ There are several special widgets that can be used by prefixing the name of the This is a textbox widget. The displayed string can be set with `str`. * `icon`: This is an icon widget. The displayed icon can be set with `filename` and size with `size`. + If the property `action` is set, it acts as a button. + `action` can be set to a keybinding name and completes that action. (see rofi -show keys for a list). * `button`: This is a textbox widget that can have a 'clickable' action. The `action` can be set to: - `ok` accept entry. - `custom` accept custom input. - `ok|alternate`: accept entry and launch alternate action (for run launch in terminal). - `custom|alternate`: accept custom input and launch alternate action. + `keybinding`: accepts a keybinging name and completes that action. (see rofi -show keys for a list). To specify children, set the `children` property (this always happens on the `box` child, see example below): @@ -1179,15 +1179,18 @@ configuration { directory: "/some/directory"; /** * Sorting method. Can be set to: - * - "name" - * - "mtime" (modification time) - * - "atime" (access time) - * - "ctime" (change time) + * \- "name" + * \- "mtime" (modification time) + * \- "atime" (access time) + * \- "ctime" (change time) */ - sorting-method: "name"; + sorting\-method: "name"; } } +.fi +.RE + .SS Other .PP \fB\fC\-drun\-use\-desktop\-cache\fR |