diff options
author | Dave Davenport <qball@gmpclient.org> | 2021-06-30 13:29:54 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2021-06-30 13:29:54 +0200 |
commit | c9701b2a9199ef7fe3348246232399449ca9416b (patch) | |
tree | 1e3a20cc7831f04820a28ea30ad470668831c579 /include | |
parent | 42dde494c1a4ff7d6b49259fff94007541497314 (diff) |
[View] Add support for user timeout + keybinding action
Configuration looks like:
```css
configuration {
timeout {
delay: 15;
action: "kb-cancel";
}
}
```
Both delay and action need to be set.
Action can be any of the keybindings as shown in `rofi -show keys`.
(-timeout-delay 15 -timeout-action "kb-cancel" on commandline.).
Fixes: #1066
Diffstat (limited to 'include')
-rw-r--r-- | include/keyb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/keyb.h b/include/keyb.h index 67c49432..1cf33254 100644 --- a/include/keyb.h +++ b/include/keyb.h @@ -186,5 +186,11 @@ gboolean parse_keys_abe ( NkBindings *bindings ); */ void setup_abe ( void ); +/** + * @param name Don't have the name. + * + * @returns id, or UINT32_MAX if not found. + */ +guint key_binding_get_action_from_name ( const char *name ); /**@}*/ #endif // ROFI_KEYB_H |