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

Go to the source code of this file.

Data Structures

struct  ActionBindingEntry
 

Functions

void abe_list_all_bindings (gboolean is_term)
 
void setup_abe (void)
 
static gboolean binding_check_action (guint64 scope, G_GNUC_UNUSED gpointer target, gpointer user_data)
 
static void 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_check_action()

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

Definition at line 412 of file keyb.c.

References rofi_view_check_action(), and rofi_view_get_active().

Referenced by parse_keys_abe().

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

◆ binding_trigger_action()

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

Definition at line 421 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:173
@ MOUSE_DCLICK_UP
Definition keyb.h:176
@ MOUSE_CLICK_UP
Definition keyb.h:174
@ MOUSE_DCLICK_DOWN
Definition keyb.h:175

Default binding of mouse button to action.

Definition at line 377 of file keyb.c.

Referenced by parse_keys_abe().

◆ rofi_bindings

ActionBindingEntry rofi_bindings[]

Data structure holding all the action keybinding.

Definition at line 45 of file keyb.c.

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