rofi  1.7.0
keyb.c File Reference
#include "config.h"
#include <string.h>
#include "rofi.h"
#include "nkutils-bindings.h"
#include "xrmoptions.h"
Include dependency graph for keyb.c:

Go to the source code of this file.

Data Structures

struct  ActionBindingEntry
 

Functions

void setup_abe (void)
 
static gboolean binding_trigger_action (guint64 scope, G_GNUC_UNUSED gpointer target, gpointer user_data)
 
guint key_binding_get_action_from_name (const char *name)
 
gboolean parse_keys_abe (NkBindings *bindings)
 

Variables

ActionBindingEntry rofi_bindings []
 
static const gchar * mouse_default_bindings []
 

Function Documentation

◆ binding_trigger_action()

static gboolean binding_trigger_action ( guint64  scope,
G_GNUC_UNUSED gpointer  target,
gpointer  user_data 
)
static

Definition at line 145 of file keyb.c.

References rofi_view_get_active(), and rofi_view_trigger_action().

Referenced by parse_keys_abe().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mouse_default_bindings

const gchar* mouse_default_bindings[]
static
Initial value:
= {
[MOUSE_CLICK_DOWN] = "MousePrimary",
[MOUSE_CLICK_UP] = "!MousePrimary",
[MOUSE_DCLICK_DOWN] = "MouseDPrimary",
[MOUSE_DCLICK_UP] = "!MouseDPrimary",
}
@ MOUSE_CLICK_DOWN
Definition: keyb.h:167
@ MOUSE_DCLICK_UP
Definition: keyb.h:170
@ MOUSE_CLICK_UP
Definition: keyb.h:168
@ MOUSE_DCLICK_DOWN
Definition: keyb.h:169

Default binding of mouse button to action.

Definition at line 129 of file keyb.c.

Referenced by parse_keys_abe().

◆ rofi_bindings

ActionBindingEntry rofi_bindings[]

Data structure holding all the action keybinding.

Definition at line 46 of file keyb.c.

Referenced by key_binding_get_action_from_name(), parse_keys_abe(), and setup_abe().