-
Notifications
You must be signed in to change notification settings - Fork 2
/
event_handler
86 lines (68 loc) · 1.47 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
86
#!/bin/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
HYPRPROP_PID='/tmp/hyprprop.pid'
event_workspace() {
: # WORKSPACENAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_focusedmon() {
: # MONNAME WORKSPACENAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_activewindow() {
: # WINDOWCLASS WINDOWTITLE
}
event_fullscreen() {
: # ENTER (0 if leaving fullscreen, 1 if entering)
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_monitorremoved() {
: # MONITORNAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_monitoradded() {
: # MONITORNAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_createworkspace() {
: # WORKSPACENAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_destroyworkspace() {
: # WORKSPACENAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_moveworkspace() {
: # WORKSPACENAME MONNAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_activelayout() {
: # KEYBOARDNAME LAYOUTNAME
}
event_openwindow() {
: # WINDOWADDRESS WORKSPACENAME WINDOWCLASS WINDOWTITLE
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_closewindow() {
: # WINDOWADDRESS
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_movewindow() {
: # WINDOWADDRESS WORKSPACENAME
kill -USR1 "$(cat "$HYPRPROP_PID")"
}
event_openlayer() {
: # NAMESPACE
}
event_closelayer() {
: # NAMESPACE
}
event_submap() {
: # SUBMAPNAME
}