summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5
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
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')
-rw-r--r--doc/rofi-theme.57
1 files changed, 3 insertions, 4 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