-
Notifications
You must be signed in to change notification settings - Fork 0
/
xkeymou.h
51 lines (43 loc) · 1 KB
/
xkeymou.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* path: /home/klassiker/.local/share/repos/xkeymou/xkeymou.h
* author: klassiker [mrdotx]
* github: https://github.com/mrdotx/xkeymou
* date: 2024-03-06T08:02:38+0100
*/
#include <X11/XKBlib.h>
typedef struct {
KeySym keysym;
float x,
y;
} MoveBinding;
typedef struct {
KeySym keysym;
unsigned int button;
} ClickBinding;
typedef struct {
KeySym keysym;
float x,
y;
} ScrollBinding;
typedef struct {
KeySym keysym;
unsigned int speed;
} SpeedBinding;
typedef struct {
KeySym keysym;
char const*command;
} ShellBinding;
typedef struct {
int point;
char const*command;
} ShellExec;
void shell_execute(int point, int is_debug);
void get_pointer();
void move_relative(float x, float y);
void click(unsigned int button, int is_press);
void click_full(unsigned int button);
void scroll(float x, float y);
void init_x();
void close_x(int exit_status);
void *move_forever(void *val);
void handle_key(KeyCode keycode, int is_press, int is_debug);