添加快捷键设置
This commit is contained in:
@@ -24,7 +24,7 @@ struct monitor_t {
|
||||
|
||||
/* 为了避免引入 cairo 相关头文件,这里用 void *
|
||||
* 指针代替实际的指针类型,使用时强转为相应指针类型使用即可 */
|
||||
void *cr; /* cairo_t */
|
||||
void *cr; /* cairo_t */
|
||||
|
||||
const layout_t *layout;
|
||||
monitor_t *next;
|
||||
@@ -73,6 +73,21 @@ typedef struct rule_t {
|
||||
bool floating;
|
||||
} rule_t;
|
||||
|
||||
typedef union user_action_arg_t {
|
||||
bool b;
|
||||
int32_t i;
|
||||
uint32_t ui;
|
||||
float f;
|
||||
const void *ptr;
|
||||
} user_action_arg_t;
|
||||
|
||||
typedef struct keybinding_t {
|
||||
uint32_t modifiers;
|
||||
uint32_t key_symbol;
|
||||
void (*func)(const user_action_arg_t *);
|
||||
const user_action_arg_t arg;
|
||||
} keybinding_t;
|
||||
|
||||
typedef struct color_t {
|
||||
uint32_t rgba;
|
||||
uint32_t argb;
|
||||
|
||||
Reference in New Issue
Block a user