]> icculus.org git repositories - dana/openbox.git/blob - data/mouse
Load and save the margins stuff from the cache config file
[dana/openbox.git] / data / mouse
1 <mouse>
2   <context name="Frame">
3     <mousebind button="A-Left" action="Press">
4       <action name="Focus"/>
5       <action name="Raise"/>
6     </mousebind>
7     <mousebind button="A-Left" action="Click">
8       <action name="Unshade"/>
9     </mousebind>
10     <mousebind button="A-Left" action="Drag">
11       <action name="Move"/>
12     </mousebind>
13
14     <mousebind button="A-Right" action="Press">
15       <action name="Focus"/>
16       <action name="Raise"/>
17       <action name="Unshade"/>
18     </mousebind>
19     <mousebind button="A-Right" action="Drag">
20       <action name="Resize"/>
21     </mousebind> 
22
23     <mousebind button="A-Middle" action="Press">
24       <action name="Lower"/>
25       <action name="FocusToBottom"/>
26       <action name="Unfocus"/>
27     </mousebind>
28
29     <mousebind button="A-Up" action="Click">
30       <action name="GoToDesktop"><to>previous</to></action>
31     </mousebind>
32     <mousebind button="A-Down" action="Click">
33       <action name="GoToDesktop"><to>next</to></action>
34     </mousebind>
35     <mousebind button="C-A-Up" action="Click">
36       <action name="GoToDesktop"><to>previous</to></action>
37     </mousebind>
38     <mousebind button="C-A-Down" action="Click">
39       <action name="GoToDesktop"><to>next</to></action>
40     </mousebind>
41     <mousebind button="A-S-Up" action="Click">
42       <action name="SendToDesktop"><to>previous</to></action>
43     </mousebind>
44     <mousebind button="A-S-Down" action="Click">
45       <action name="SendToDesktop"><to>next</to></action>
46     </mousebind>
47   </context>
48
49   <context name="Titlebar">
50     <mousebind button="Left" action="Drag">
51       <action name="Move"/>
52     </mousebind>
53     <mousebind button="Left" action="DoubleClick">
54       <action name="ToggleMaximize"/>
55     </mousebind>
56
57     <mousebind button="Up" action="Click">
58       <action name="if">
59         <shaded>no</shaded>
60         <then>
61           <action name="Shade"/>
62           <action name="FocusToBottom"/>
63           <action name="Unfocus"/>
64           <action name="Lower"/>
65         </then>
66       </action>
67     </mousebind>
68     <mousebind button="Down" action="Click">
69       <action name="if">
70         <shaded>yes</shaded>
71         <then>
72           <action name="Unshade"/>
73           <action name="Raise"/>
74         </then>
75       </action>
76     </mousebind>
77   </context>
78
79   <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
80     <mousebind button="Left" action="Press">
81       <action name="Focus"/>
82       <action name="Raise"/>
83       <action name="Unshade"/>
84     </mousebind>
85
86     <mousebind button="Middle" action="Press">
87       <action name="Lower"/>
88       <action name="FocusToBottom"/>
89       <action name="Unfocus"/>
90     </mousebind>
91
92     <mousebind button="Right" action="Press">
93       <action name="Focus"/>
94       <action name="Raise"/>
95       <action name="ShowMenu"><menu>client-menu</menu></action>
96     </mousebind>
97   </context>
98
99   <context name="Top">
100     <mousebind button="Left" action="Drag">
101       <action name="Resize"><edge>top</edge></action>
102     </mousebind>
103   </context>
104
105   <context name="Left">
106     <mousebind button="Left" action="Drag">
107       <action name="Resize"><edge>left</edge></action>
108     </mousebind>
109   </context>
110
111   <context name="Right">
112     <mousebind button="Left" action="Drag">
113       <action name="Resize"><edge>right</edge></action>
114     </mousebind>
115   </context>
116
117   <context name="Bottom">
118     <mousebind button="Left" action="Drag">
119       <action name="Resize"><edge>bottom</edge></action>
120     </mousebind>
121
122     <mousebind button="Right" action="Press">
123       <action name="Focus"/>
124       <action name="Raise"/>
125       <action name="ShowMenu"><menu>client-menu</menu></action>
126     </mousebind>
127   </context>
128
129   <context name="TRCorner BRCorner TLCorner BLCorner">
130     <mousebind button="Left" action="Press">
131       <action name="Focus"/>
132       <action name="Raise"/>
133       <action name="Unshade"/>
134     </mousebind>
135     <mousebind button="Left" action="Drag">
136       <action name="Resize"/>
137     </mousebind>
138   </context>
139
140   <context name="Client">
141     <mousebind button="Left" action="Press">
142       <action name="Focus"/>
143       <action name="Raise"/>
144     </mousebind>
145     <mousebind button="Middle" action="Press">
146       <action name="Focus"/>
147       <action name="Raise"/>
148     </mousebind>
149     <mousebind button="Right" action="Press">
150       <action name="Focus"/>
151       <action name="Raise"/>
152     </mousebind>
153   </context>
154
155   <context name="Icon">
156     <mousebind button="Left" action="Press">
157       <action name="Focus"/>
158       <action name="Raise"/>
159       <action name="Unshade"/>
160       <action name="ShowMenu"><menu>client-menu</menu></action>
161     </mousebind>
162     <mousebind button="Right" action="Press">
163       <action name="Focus"/>
164       <action name="Raise"/>
165       <action name="ShowMenu"><menu>client-menu</menu></action>
166     </mousebind>
167   </context>
168
169   <context name="AllDesktops">
170     <mousebind button="Left" action="Press">
171       <action name="Focus"/>
172       <action name="Raise"/>
173       <action name="Unshade"/>
174     </mousebind>
175     <mousebind button="Left" action="Click">
176       <action name="ToggleOmnipresent"/>
177     </mousebind>
178   </context>
179
180   <context name="Shade">
181     <mousebind button="Left" action="Press">
182       <action name="Focus"/>
183       <action name="Raise"/>
184     </mousebind>
185     <mousebind button="Left" action="Click">
186       <action name="ToggleShade"/>
187     </mousebind>
188   </context>
189
190   <context name="Iconify">
191     <mousebind button="Left" action="Press">
192       <action name="Focus"/>
193       <action name="Raise"/>
194     </mousebind>
195     <mousebind button="Left" action="Click">
196       <action name="Iconify"/>
197     </mousebind>
198   </context>
199
200   <context name="Maximize">
201     <mousebind button="Left" action="Press">
202       <action name="Focus"/>
203       <action name="Raise"/>
204       <action name="Unshade"/>
205     </mousebind>
206     <mousebind button="Middle" action="Press">
207       <action name="Focus"/>
208       <action name="Raise"/>
209       <action name="Unshade"/>
210     </mousebind>
211     <mousebind button="Right" action="Press">
212       <action name="Focus"/>
213       <action name="Raise"/>
214       <action name="Unshade"/>
215     </mousebind>
216     <mousebind button="Left" action="Click">
217       <action name="ToggleMaximize"/>
218     </mousebind>
219     <mousebind button="Middle" action="Click">
220       <action name="ToggleMaximize"><direction>vertical</direction></action>
221     </mousebind>
222     <mousebind button="Right" action="Click">
223       <action name="ToggleMaximize"><direction>horizontal</direction></action>
224     </mousebind>
225   </context>
226
227   <context name="Close">
228     <mousebind button="Left" action="Press">
229       <action name="Focus"/>
230       <action name="Raise"/>
231       <action name="Unshade"/>
232     </mousebind>
233     <mousebind button="Left" action="Click">
234       <action name="Close"/>
235     </mousebind>
236   </context>
237
238   <context name="Desktop">
239     <mousebind button="Up" action="Click">
240       <action name="GoToDesktop"><to>previous</to></action>
241     </mousebind>
242     <mousebind button="Down" action="Click">
243       <action name="GoToDesktop"><to>next</to></action>
244     </mousebind>
245
246     <mousebind button="A-Up" action="Click">
247       <action name="GoToDesktop"><to>previous</to></action>
248     </mousebind>
249     <mousebind button="A-Down" action="Click">
250       <action name="GoToDesktop"><to>next</to></action>
251     </mousebind>
252     <mousebind button="C-A-Up" action="Click">
253       <action name="GoToDesktop"><to>previous</to></action>
254     </mousebind>
255     <mousebind button="C-A-Down" action="Click">
256       <action name="GoToDesktop"><to>next</to></action>
257     </mousebind>
258
259     <mousebind button="Left" action="Press">
260       <action name="Focus"/>
261       <action name="Raise"/>
262     </mousebind>
263     <mousebind button="Right" action="Press">
264       <action name="Focus"/>
265       <action name="Raise"/>
266     </mousebind>
267   </context>
268
269   <context name="Root">
270     <!-- Menus -->
271     <mousebind button="Middle" action="Press">
272       <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
273     </mousebind> 
274     <mousebind button="Right" action="Press">
275       <action name="ShowMenu"><menu>root-menu</menu></action>
276     </mousebind>
277   </context>
278
279   <context name="MoveResize">
280     <mousebind button="Up" action="Click">
281       <action name="GoToDesktop"><to>previous</to></action>
282     </mousebind>
283     <mousebind button="Down" action="Click">
284       <action name="GoToDesktop"><to>next</to></action>
285     </mousebind>
286     <mousebind button="A-Up" action="Click">
287       <action name="GoToDesktop"><to>previous</to></action>
288     </mousebind>
289     <mousebind button="A-Down" action="Click">
290       <action name="GoToDesktop"><to>next</to></action>
291     </mousebind>
292   </context>
293 </mouse>