summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5.markdown
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2021-06-30 14:12:09 +0200
committerDave Davenport <qball@gmpclient.org>2021-06-30 14:12:09 +0200
commit0c304524fb49e641d3da1a86a39f654cf162ca49 (patch)
tree20dfdac21d02b61d0bad2a992af5368b9f80b93e /doc/rofi-theme.5.markdown
parentc1cd4540a44b17409933148bb22e98db38a41306 (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/rofi-theme.5.markdown')
-rw-r--r--doc/rofi-theme.5.markdown7
1 files changed, 3 insertions, 4 deletions
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):