-
Notifications
You must be signed in to change notification settings - Fork 1
/
event_handler
85 lines (65 loc) · 1.16 KB
/
event_handler
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env sh
# default handlers for hyprevents
#
# override the function in your own events
# file to provide a custom handler
#
# comments inside each handler list the variables
# that are set when the handler is invoked
event_activelayout() {
: # KEYBOARDNAME LAYOUTNAME
}
event_activewindow() {
: # WINDOWCLASS WINDOWTITLE
}
event_activewindowv2() {
: # WINDOWADDRESS
}
event_closelayer() {
: # NAMESPACE
}
event_closewindow() {
: # WINDOWADDRESS
}
event_createworkspace() {
: # WORKSPACENAME
}
event_destroyworkspace() {
: # WORKSPACENAME
}
event_focusedmon() {
: # MONNAME WORKSPACENAME
}
event_fullscreen() {
: # ENTER (0 if leaving fullscreen, 1 if entering)
}
event_monitoradded() {
: # MONITORNAME
}
event_monitorremoved() {
: # MONITORNAME
}
event_movewindow() {
: # WINDOWADDRESS WORKSPACENAME
}
event_moveworkspace() {
: # WORKSPACENAME MONNAME
}
event_openlayer() {
: # NAMESPACE
}
event_openwindow() {
: # WINDOWADDRESS WORKSPACENAME WINDOWCLASS WINDOWTITLE
}
event_screencast() {
: # STATE OWNER
}
event_submap() {
: # SUBMAPNAME
}
event_windowtitle() {
: # WINDOWADDRESS
}
event_workspace() {
: # WORKSPACENAME
}