mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Merge 7a93906626 into e40eb338b9
This commit is contained in:
commit
9a024bd3db
6 changed files with 50 additions and 4 deletions
|
|
@ -5,6 +5,13 @@
|
|||
|
||||
#define SWAY_KEYBOARD_PRESSED_KEYS_CAP 32
|
||||
|
||||
struct modifier_key {
|
||||
char *name;
|
||||
uint32_t mod;
|
||||
};
|
||||
|
||||
extern struct modifier_key modifiers[10];
|
||||
|
||||
/**
|
||||
* Get modifier mask from modifier name.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef _SWAYBAR_IPC_H
|
||||
#define _SWAYBAR_IPC_H
|
||||
#include <stdbool.h>
|
||||
#include <json.h>
|
||||
#include "swaybar/bar.h"
|
||||
|
||||
bool ipc_initialize(struct swaybar *bar);
|
||||
|
|
@ -8,5 +9,6 @@ bool handle_ipc_readable(struct swaybar *bar);
|
|||
bool ipc_get_workspaces(struct swaybar *bar);
|
||||
void ipc_send_workspace_command(struct swaybar *bar, const char *ws);
|
||||
void ipc_execute_binding(struct swaybar *bar, struct swaybar_binding *bind);
|
||||
json_object *ipc_get_keyboard_modifiers(struct status_line *status);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue