-
Notifications
You must be signed in to change notification settings - Fork 10
/
WindowBeginResize.php
163 lines (128 loc) · 3.44 KB
/
WindowBeginResize.php
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!-- Window Begin Resize //-->
<keybind key="W-r">
<action name="UnmaximizeFull"/>
<action name="Resize"/>
</keybind>
<!-- Version: [k j h l] //-->
<!-- Move the bottom edge up, shrinking the window //-->
<keybind key="W-C-k">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<bottom>-20</bottom>
</action>
</keybind>
<!-- Move the bottom edge down, growing the window //-->
<keybind key="W-C-j">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<bottom>+20</bottom>
</action>
</keybind>
<!-- Move the right edge left, shrinking the window //-->
<keybind key="W-C-h">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<right>-20</right>
</action>
</keybind>
<!-- Move the right edge right, growing the window //-->
<keybind key="W-C-l">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<right>+20</right>
</action>
</keybind>
<!-- Version: [Up Down Left Right] //-->
<!-- Move the bottom edge up, shrinking the window //-->
<keybind key="W-C-Up">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<bottom>-20</bottom>
</action>
</keybind>
<!-- Move the bottom edge down, growing the window //-->
<keybind key="W-C-Down">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<bottom>+20</bottom>
</action>
</keybind>
<!-- Move the right edge left, shrinking the window //-->
<keybind key="W-C-Left">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<right>-20</right>
</action>
</keybind>
<!-- Move the right edge right, growing the window //-->
<keybind key="W-C-Right">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<right>+20</right>
</action>
</keybind>
<!-- Version: [i u y o] //-->
<!-- Move the top edge up, growing the window //-->
<keybind key="W-C-i">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<top>+20</top>
</action>
</keybind>
<!-- Move the top edge down, shrinking the window //-->
<keybind key="W-C-u">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<top>-20</top>
</action>
</keybind>
<!-- Move the left edge left, growing the window //-->
<keybind key="W-C-y">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<left>+20</left>
</action>
</keybind>
<!-- Move the left edge right, shrinking the window //-->
<keybind key="W-C-o">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<left>-20</left>
</action>
</keybind>
<!-- Version: [Up Down Left Right] //-->
<!-- Move the top edge up, growing the window //-->
<keybind key="W-S-Up">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<top>+20</top>
</action>
</keybind>
<!-- Move the top edge down, shrinking the window //-->
<keybind key="W-S-Down">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<top>-20</top>
</action>
</keybind>
<!-- Move the left edge left, growing the window //-->
<keybind key="W-S-Left">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<left>+20</left>
</action>
</keybind>
<!-- Move the left edge right, shrinking the window //-->
<keybind key="W-S-Right">
<action name="UnmaximizeFull"/>
<action name="ResizeRelative">
<left>-20</left>
</action>
</keybind>
<?php
/*
## Help
* http://openbox.org/wiki/Help:Actions#Resize
* http://openbox.org/wiki/Help:Actions#ResizeRelative
*/
?>