aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/openbox/rc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'misc/openbox/rc.xml')
-rw-r--r--misc/openbox/rc.xml1028
1 files changed, 1028 insertions, 0 deletions
diff --git a/misc/openbox/rc.xml b/misc/openbox/rc.xml
new file mode 100644
index 0000000..8b45efa
--- /dev/null
+++ b/misc/openbox/rc.xml
@@ -0,0 +1,1028 @@
1<?xml version="1.0"?>
2<!-- Copyright (C) 2020-2021 Aditya Shakya <adi1090x@gmail.com> -->
3<!-- Everyone is permitted to copy and distribute copies of this file under GNU-GPL3 -->
4<!-- ################################ General Settings ################################ -->
5<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
6 <resistance>
7 <strength>10</strength>
8 <screen_edge_strength>20</screen_edge_strength>
9 </resistance>
10 <focus>
11 <focusNew>yes</focusNew>
12 <followMouse>no</followMouse>
13 <focusLast>yes</focusLast>
14 <underMouse>no</underMouse>
15 <focusDelay>200</focusDelay>
16 <raiseOnFocus>no</raiseOnFocus>
17 </focus>
18 <placement>
19 <policy>Smart</policy>
20 <center>yes</center>
21 <monitor>Mouse</monitor>
22 <primaryMonitor>Mouse</primaryMonitor>
23 </placement>
24 <theme>
25 <name>Arc-Dark</name>
26 <titleLayout>DLIMC</titleLayout>
27 <keepBorder>no</keepBorder>
28 <animateIconify>yes</animateIconify>
29 <font place="ActiveWindow">
30 <name>Sans</name>
31 <size>16</size>
32 <weight>Bold</weight>
33 <slant>Normal</slant>
34 </font>
35 <font place="InactiveWindow">
36 <name>Sans</name>
37 <size>16</size>
38 <weight>Normal</weight>
39 <slant>Normal</slant>
40 </font>
41 <font place="MenuHeader">
42 <name>Sans</name>
43 <size>16</size>
44 <weight>Bold</weight>
45 <slant>Normal</slant>
46 </font>
47 <font place="MenuItem">
48 <name>Sans</name>
49 <size>16</size>
50 <weight>Normal</weight>
51 <slant>Normal</slant>
52 </font>
53 <font place="ActiveOnScreenDisplay">
54 <name>Sans</name>
55 <size>16</size>
56 <weight>Bold</weight>
57 <slant>Normal</slant>
58 </font>
59 <font place="InactiveOnScreenDisplay">
60 <name>Sans</name>
61 <size>16</size>
62 <weight>Normal</weight>
63 <slant>Normal</slant>
64 </font>
65 </theme>
66 <desktops>
67 <number>5</number>
68 <firstdesk>0</firstdesk>
69 <names>
70 <name>1</name>
71 <name>2</name>
72 <name>3</name>
73 <name>4</name>
74 <name>5</name>
75 </names>
76 <popupTime>0</popupTime>
77 </desktops>
78 <resize>
79 <drawContents>yes</drawContents>
80 <popupShow>Always</popupShow>
81 <popupPosition>Center</popupPosition>
82 <popupFixedPosition>
83 <x>10</x>
84 <y>10</y>
85 </popupFixedPosition>
86 </resize>
87 <margins>
88 <top>0</top>
89 <bottom>0</bottom>
90 <left>0</left>
91 <right>0</right>
92 </margins>
93 <dock>
94 <position>Bottom</position>
95 <floatingX>0</floatingX>
96 <floatingY>0</floatingY>
97 <noStrut>no</noStrut>
98 <stacking>Above</stacking>
99 <direction>Vertical</direction>
100 <autoHide>no</autoHide>
101 <hideDelay>300</hideDelay>
102 <showDelay>300</showDelay>
103 <moveButton>Middle</moveButton>
104 </dock>
105 <!-- ################################ Keybindings ################################ -->
106 <keyboard>
107 <chainQuitKey/>
108 <!-- Change Workspace/Desktop -->
109 <keybind key="W-1">
110 <action name="GoToDesktop">
111 <to>1</to>
112 </action>
113 </keybind>
114 <keybind key="W-2">
115 <action name="GoToDesktop">
116 <to>2</to>
117 </action>
118 </keybind>
119 <keybind key="W-3">
120 <action name="GoToDesktop">
121 <to>3</to>
122 </action>
123 </keybind>
124 <keybind key="W-4">
125 <action name="GoToDesktop">
126 <to>4</to>
127 </action>
128 </keybind>
129 <keybind key="W-5">
130 <action name="GoToDesktop">
131 <to>5</to>
132 </action>
133 </keybind>
134 <!-- Move application to specific desktop -->
135 <keybind key="S-W-1">
136 <action name="SendToDesktop">
137 <desktop>1</desktop>
138 </action>
139 </keybind>
140 <keybind key="S-W-2">
141 <action name="SendToDesktop">
142 <desktop>2</desktop>
143 </action>
144 </keybind>
145 <keybind key="S-W-3">
146 <action name="SendToDesktop">
147 <desktop>3</desktop>
148 </action>
149 </keybind>
150 <keybind key="S-W-4">
151 <action name="SendToDesktop">
152 <desktop>4</desktop>
153 </action>
154 </keybind>
155 <keybind key="S-W-5">
156 <action name="SendToDesktop">
157 <desktop>5</desktop>
158 </action>
159 </keybind>
160 <!-- Switch b/w Applications -->
161 <keybind key="W-Tab">
162 <action name="NextWindow">
163 <allDesktops>no</allDesktops>
164 <raise>yes</raise>
165 <!-- Hide black border around windows -->
166 <bar>no</bar>
167 <finalactions>
168 <action name="Focus"/>
169 <action name="UnshadeRaise"/>
170 </finalactions>
171 </action>
172 </keybind>
173 <keybind key="A-Tab">
174 <action name="NextWindow">
175 <allDesktops>yes</allDesktops>
176 <!-- Hide black border around windows -->
177 <bar>no</bar>
178 <finalactions>
179 <action name="focus"/>
180 <action name="raise"/>
181 </finalactions>
182 </action>
183 </keybind>
184 <!-- Window Tiling: Snap feature -->
185 <keybind key="W-Left">
186 <action name="UnmaximizeFull"/>
187 <action name="MaximizeVert"/>
188 <action name="MoveResizeTo">
189 <width>50%</width>
190 </action>
191 <action name="MoveToEdgeWest"/>
192 </keybind>
193 <keybind key="W-Right">
194 <action name="UnmaximizeFull"/>
195 <action name="MaximizeVert"/>
196 <action name="MoveResizeTo">
197 <width>49%</width>
198 </action>
199 <action name="MoveToEdgeEast"/>
200 </keybind>
201 <keybind key="W-Up">
202 <action name="MaximizeFull"/>
203 </keybind>
204 <keybind key="W-Down">
205 <action name="UnmaximizeFull"/>
206 <action name="MoveResizeTo">
207 <width>60%</width>
208 <height>80%</height>
209 </action>
210 <action name="MoveToCenter"/>
211 </keybind>
212 <!-- Top right-->
213 <keybind key="W-k">
214 <action name="Unmaximize"/>
215 <action name="MoveResizeTo">
216 <x>-5</x>
217 <y>5</y>
218 </action>
219 </keybind>
220 <!-- Top left-->
221 <keybind key="W-h">
222 <action name="Unmaximize"/>
223 <action name="MoveResizeTo">
224 <x>5</x>
225 <y>5</y>
226 </action>
227 </keybind>
228 <!-- Bottom left-->
229 <keybind key="W-j">
230 <action name="Unmaximize"/>
231 <action name="MoveResizeTo">
232 <x>5</x>
233 <y>-5</y>
234 </action>
235 </keybind>
236 <!-- Bottom right-->
237 <keybind key="W-l">
238 <action name="Unmaximize"/>
239 <action name="MoveResizeTo">
240 <x>-5</x>
241 <y>-5</y>
242 </action>
243 </keybind>
244 <keybind key="A-z">
245 <action name="Unmaximize"/>
246 <action name="MoveResizeTo">
247 <x>15</x>
248 <y>15</y>
249 <height>97%</height>
250 <width>32%</width>
251 </action>
252 </keybind>
253 <keybind key="A-x">
254 <action name="Unmaximize"/>
255 <action name="MoveResizeTo">
256 <x>34%</x>
257 <y>15</y>
258 <height>97%</height>
259 <width>32%</width>
260 </action>
261 </keybind>
262 <keybind key="A-c">
263 <action name="Unmaximize"/>
264 <action name="MoveResizeTo">
265 <x>-17</x>
266 <y>15</y>
267 <height>97%</height>
268 <width>32%</width>
269 </action>
270 </keybind>
271 <!-- Windows Tiling -->
272 <keybind key="W-KP_1">
273 <action name="UnmaximizeFull"/>
274 <action name="MoveResizeTo">
275 <x>0</x>
276 <y>-0</y>
277 <width>50%</width>
278 <height>50%</height>
279 </action>
280 </keybind>
281 <keybind key="W-KP_2">
282 <action name="UnmaximizeFull"/>
283 <action name="MoveResizeTo">
284 <x>0</x>
285 <y>-0</y>
286 <width>100%</width>
287 <height>50%</height>
288 </action>
289 </keybind>
290 <keybind key="W-KP_3">
291 <action name="UnmaximizeFull"/>
292 <action name="MoveResizeTo">
293 <x>-0</x>
294 <y>-0</y>
295 <width>50%</width>
296 <height>50%</height>
297 </action>
298 </keybind>
299 <keybind key="W-KP_4">
300 <action name="UnmaximizeFull"/>
301 <action name="MoveResizeTo">
302 <x>0</x>
303 <y>0</y>
304 <width>50%</width>
305 <height>100%</height>
306 </action>
307 </keybind>
308 <keybind key="W-KP_5">
309 <action name="MaximizeFull"/>
310 </keybind>
311 <keybind key="W-KP_6">
312 <action name="UnmaximizeFull"/>
313 <action name="MoveResizeTo">
314 <x>-0</x>
315 <y>0</y>
316 <width>50%</width>
317 <height>100%</height>
318 </action>
319 </keybind>
320 <keybind key="W-KP_7">
321 <action name="UnmaximizeFull"/>
322 <action name="MoveResizeTo">
323 <x>0</x>
324 <y>0</y>
325 <width>50%</width>
326 <height>50%</height>
327 </action>
328 </keybind>
329 <keybind key="W-KP_8">
330 <action name="UnmaximizeFull"/>
331 <action name="MoveResizeTo">
332 <x>0</x>
333 <y>0</y>
334 <width>100%</width>
335 <height>50%</height>
336 </action>
337 </keybind>
338 <keybind key="W-KP_9">
339 <action name="UnmaximizeFull"/>
340 <action name="MoveResizeTo">
341 <x>-0</x>
342 <y>0</y>
343 <width>50%</width>
344 <height>50%</height>
345 </action>
346 </keybind>
347 <!-- Move -->
348 <keybind key="W-A-Up">
349 <action name="MoveRelative">
350 <x>0</x>
351 <y>-20</y>
352 </action>
353 </keybind>
354 <keybind key="W-A-Down">
355 <action name="MoveRelative">
356 <x>0</x>
357 <y>20</y>
358 </action>
359 </keybind>
360 <keybind key="W-A-Left">
361 <action name="MoveRelative">
362 <x>-20</x>
363 <y>0</y>
364 </action>
365 </keybind>
366 <keybind key="W-A-Right">
367 <action name="MoveRelative">
368 <x>20</x>
369 <y>0</y>
370 </action>
371 </keybind>
372 <!-- Resize -->
373 <keybind key="C-A-Right">
374 <action name="ResizeRelative">
375 <right>20</right>
376 </action>
377 </keybind>
378 <keybind key="C-A-Left">
379 <action name="ResizeRelative">
380 <right>-20</right>
381 </action>
382 </keybind>
383 <keybind key="C-A-Down">
384 <action name="ResizeRelative">
385 <bottom>20</bottom>
386 </action>
387 </keybind>
388 <keybind key="C-A-Up">
389 <action name="ResizeRelative">
390 <bottom>-20</bottom>
391 </action>
392 </keybind>
393 <!-- Send Application to next/prev desktop -->
394 <keybind key="W-S-Left">
395 <action name="SendToDesktopLeft"/>
396 </keybind>
397 <keybind key="W-S-Right">
398 <action name="SendToDesktopRight"/>
399 </keybind>
400 <!-- Media Controls-->
401 <keybind key="XF86AudioRaiseVolume">
402 <action name="Execute">
403 <command>volume --inc</command>
404 </action>
405 </keybind>
406 <keybind key="XF86AudioLowerVolume">
407 <action name="Execute">
408 <command>volume --dec</command>
409 </action>
410 </keybind>
411 <keybind key="XF86AudioMute">
412 <action name="Execute">
413 <command>volume --toggle</command>
414 </action>
415 </keybind>
416 <keybind key="XF86AudioStop">
417 <action name="Execute">
418 <command>mpc stop</command>
419 </action>
420 </keybind>
421 <keybind key="XF86AudioPlay">
422 <action name="Execute">
423 <command>mpc toggle</command>
424 </action>
425 </keybind>
426 <keybind key="XF86AudioPrev">
427 <action name="Execute">
428 <command>mpc prev</command>
429 </action>
430 </keybind>
431 <keybind key="XF86AudioNext">
432 <action name="Execute">
433 <command>mpc next</command>
434 </action>
435 </keybind>
436 <!-- Brightness Control -->
437 <keybind key="XF86MonBrightnessUp">
438 <action name="Execute">
439 <command>brightness --inc</command>
440 </action>
441 </keybind>
442 <keybind key="XF86MonBrightnessDown">
443 <action name="Execute">
444 <command>brightness --dec</command>
445 </action>
446 </keybind>
447 <!-- Screenshot Keys -->
448 <keybind key="Print">
449 <action name="Execute">
450 <command>takeshot --now</command>
451 </action>
452 </keybind>
453 <keybind key="A-Print">
454 <action name="Execute">
455 <command>takeshot --in5</command>
456 </action>
457 </keybind>
458 <keybind key="S-Print">
459 <action name="Execute">
460 <command>takeshot --in10</command>
461 </action>
462 </keybind>
463 <keybind key="C-Print">
464 <action name="Execute">
465 <command>takeshot --win</command>
466 </action>
467 </keybind>
468 <keybind key="C-A-Print">
469 <action name="Execute">
470 <command>takeshot --area</command>
471 </action>
472 </keybind>
473 <!-- ################################ Launch Applications ################################ -->
474 <!-- Apps -->
475 <keybind key="W-Return">
476 <action name="Execute">
477 <command>alacritty</command>
478 </action>
479 </keybind>
480 <keybind key="W-t">
481 <action name="Execute">
482 <command>furminal</command>
483 </action>
484 </keybind>
485 <keybind key="W-f">
486 <action name="Execute">
487 <command>thunar</command>
488 </action>
489 </keybind>
490 <keybind key="W-w">
491 <action name="Execute">
492 <command>firefox</command>
493 </action>
494 </keybind>
495 <keybind key="W-e">
496 <action name="Execute">
497 <command>geany</command>
498 </action>
499 </keybind>
500 <!-- Rofi -->
501 <keybind key="A-F1">
502 <action name="Execute">
503 <command>~/.config/openbox/rofi/bin/launcher</command>
504 </action>
505 </keybind>
506 <keybind key="W-n">
507 <action name="Execute">
508 <command>networkmanager_dmenu</command>
509 </action>
510 </keybind>
511 <keybind key="W-m">
512 <action name="Execute">
513 <command>~/.config/openbox/rofi/bin/music</command>
514 </action>
515 </keybind>
516 <keybind key="W-x">
517 <action name="Execute">
518 <command>~/.config/openbox/rofi/bin/powermenu</command>
519 </action>
520 </keybind>
521 <keybind key="W-s">
522 <action name="Execute">
523 <command>~/.config/openbox/rofi/bin/screenshot</command>
524 </action>
525 </keybind>
526 <keybind key="W-i">
527 <action name="Execute">
528 <command>~/.config/openbox/rofi/bin/network</command>
529 </action>
530 </keybind>
531 <keybind key="W-r">
532 <action name="Execute">
533 <command>~/.config/openbox/rofi/bin/runner</command>
534 </action>
535 </keybind>
536 <keybind key="W-p">
537 <action name="Execute">
538 <command>color-gpick</command>
539 <!--<command>color-picker</command>-->
540 </action>
541 </keybind>
542 <keybind key="W-v">
543 <action name="Execute">
544 <command>tasks</command>
545 </action>
546 </keybind>
547 <!-- CLI Apps -->
548 <!--
549 <keybind key="C-A-t">
550 <action name="Execute">
551 <command>xfce4-terminal</command>
552 </action>
553 </keybind>
554 -->
555 <keybind key="C-A-v">
556 <action name="Execute">
557 <command>alacritty -e vim</command>
558 </action>
559 </keybind>
560 <keybind key="C-A-n">
561 <action name="Execute">
562 <command>alacritty -e nvim</command>
563 </action>
564 </keybind>
565 <!--keybind key="C-A-r">
566 <action name="Execute">
567 <command>alacritty -e ranger</command>
568 </action>
569 </keybind-->
570 <keybind key="C-A-h">
571 <action name="Execute">
572 <command>alacritty -e htop</command>
573 </action>
574 </keybind>
575 <keybind key="C-A-b">
576 <action name="Execute">
577 <command>alacritty -e bashtop</command>
578 </action>
579 </keybind>
580 <!-- Lockscreen -->
581 <keybind key="C-A-l">
582 <action name="Execute">
583 <command>betterlockscreen --lock</command>
584 </action>
585 </keybind>
586 <!-- Openbox -->
587 <keybind key="C-S-Escape">
588 <action name="Exit"/>
589 </keybind>
590 <keybind key="C-S-BackSpace">
591 <action name="Restart"/>
592 </keybind>
593 <keybind key="C-S-R">
594 <action name="Reconfigure"/>
595 </keybind>
596 <keybind key="W-Escape">
597 <action name="Execute">
598 <command>xkill</command>
599 </action>
600 </keybind>
601 <!--
602 <keybind key="W-c">
603 <action name="Close"/>
604 </keybind>
605 -->
606 <keybind key="A-q">
607 <action name="Close"/>
608 </keybind>
609 <keybind key="A-F5">
610 <action name="Iconify"/>
611 </keybind>
612 <keybind key="A-F6">
613 <action name="ToggleMaximize"/>
614 </keybind>
615 <keybind key="A-F7">
616 <action name="ToggleDecorations"/>
617 </keybind>
618 <keybind key="W-d">
619 <action name="ToggleShowDesktop"/>
620 </keybind>
621 <!-- Activate Move/Resize -->
622 <keybind key="A-r">
623 <action name="Resize"/>
624 </keybind>
625 <keybind key="A-m">
626 <action name="Move"/>
627 </keybind>
628 <!-- Launch Openbox Menu -->
629 <keybind key="W-space">
630 <action name="ShowMenu">
631 <menu>root-menu</menu>
632 </action>
633 </keybind>
634 <keybind key="C-A-space">
635 <action name="ShowMenu">
636 <menu>app-menu</menu>
637 </action>
638 </keybind>
639 <keybind key="A-space">
640 <action name="ShowMenu">
641 <menu>client-menu</menu>
642 </action>
643 </keybind>
644 </keyboard>
645 <!-- ################################ Mouse Settings ################################ -->
646 <mouse>
647 <dragThreshold>4</dragThreshold>
648 <doubleClickTime>400</doubleClickTime>
649 <screenEdgeWarpTime>600</screenEdgeWarpTime>
650 <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
651 <context name="Frame">
652 <mousebind action="Press" button="A-Left">
653 <action name="Focus"/>
654 <action name="Raise"/>
655 </mousebind>
656 <mousebind action="Drag" button="W-Left">
657 <action name="Move"/>
658 </mousebind>
659 <mousebind action="Press" button="A-Right">
660 <action name="Focus"/>
661 <action name="Raise"/>
662 <action name="Unshade"/>
663 </mousebind>
664 <mousebind action="Drag" button="A-Right">
665 <action name="Resize"/>
666 </mousebind>
667 </context>
668 <context name="Titlebar">
669 <mousebind action="Press" button="A-Left">
670 <action name="Focus"/>
671 <action name="Raise"/>
672 </mousebind>
673 <mousebind action="Drag" button="A-Left">
674 <action name="Move"/>
675 </mousebind>
676 <mousebind action="Press" button="Left">
677 <action name="Focus"/>
678 <action name="Raise"/>
679 </mousebind>
680 <mousebind action="Drag" button="Left">
681 <action name="if">
682 <maximizedvertical>yes</maximizedvertical>
683 <then>
684 <action name="Unmaximize"/>
685 <direction>vertical</direction>
686 <action name="MoveResizeTo">
687 <x>center</x>
688 <y>current</y>
689 </action>
690 <action name="Move"/>
691 </then>
692 <else>
693 <action name="Move"/>
694 </else>
695 </action>
696 </mousebind>
697 <mousebind action="DoubleClick" button="Left">
698 <action name="ToggleMaximizeFull"/>
699 </mousebind>
700 <mousebind action="Click" button="Up">
701 <action name="if">
702 <shaded>no</shaded>
703 <then>
704 <action name="Shade"/>
705 <action name="FocusToBottom"/>
706 <action name="Unfocus"/>
707 <action name="Lower"/>
708 </then>
709 </action>
710 </mousebind>
711 <mousebind action="Click" button="Down">
712 <action name="if">
713 <shaded>yes</shaded>
714 <then>
715 <action name="Unshade"/>
716 <action name="Raise"/>
717 </then>
718 </action>
719 </mousebind>
720 <mousebind action="Press" button="Right">
721 <action name="Focus"/>
722 <action name="Raise"/>
723 <action name="ShowMenu">
724 <menu>client-menu</menu>
725 </action>
726 </mousebind>
727 </context>
728 <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
729 <mousebind action="Press" button="Left">
730 <action name="Focus"/>
731 <action name="Raise"/>
732 <action name="Unshade"/>
733 </mousebind>
734 <mousebind action="Press" button="Right">
735 <action name="Focus"/>
736 <action name="Raise"/>
737 <action name="ShowMenu">
738 <menu>client-menu</menu>
739 </action>
740 </mousebind>
741 </context>
742 <context name="Top">
743 <mousebind action="Press" button="Left">
744 <action name="Focus"/>
745 <action name="Raise"/>
746 <action name="Unshade"/>
747 </mousebind>
748 <mousebind action="Drag" button="Left">
749 <action name="Resize">
750 <edge>top</edge>
751 </action>
752 </mousebind>
753 </context>
754 <context name="Left">
755 <mousebind action="Press" button="Left">
756 <action name="Focus"/>
757 <action name="Raise"/>
758 </mousebind>
759 <mousebind action="Drag" button="Left">
760 <action name="Resize">
761 <edge>left</edge>
762 </action>
763 </mousebind>
764 </context>
765 <context name="Right">
766 <mousebind action="Press" button="Left">
767 <action name="Focus"/>
768 <action name="Raise"/>
769 </mousebind>
770 <mousebind action="Drag" button="Left">
771 <action name="Resize">
772 <edge>right</edge>
773 </action>
774 </mousebind>
775 </context>
776 <context name="Bottom">
777 <mousebind action="Press" button="Left">
778 <action name="Focus"/>
779 <action name="Raise"/>
780 </mousebind>
781 <mousebind action="Drag" button="Left">
782 <action name="Resize">
783 <edge>bottom</edge>
784 </action>
785 </mousebind>
786 </context>
787 <context name="TRCorner BRCorner TLCorner BLCorner">
788 <mousebind action="Press" button="Left">
789 <action name="Focus"/>
790 <action name="Raise"/>
791 <action name="Unshade"/>
792 </mousebind>
793 <mousebind action="Drag" button="Left">
794 <action name="Resize"/>
795 </mousebind>
796 </context>
797 <context name="Client">
798 <mousebind action="Press" button="A-Left">
799 <action name="Focus"/>
800 <action name="Raise"/>
801 </mousebind>
802 <mousebind action="Drag" button="A-Left">
803 <action name="Move"/>
804 </mousebind>
805 <mousebind action="Press" button="Left">
806 <action name="Focus"/>
807 <action name="Raise"/>
808 </mousebind>
809 <mousebind action="Press" button="Right">
810 <action name="Focus"/>
811 <action name="Raise"/>
812 </mousebind>
813 </context>
814 <context name="Icon">
815 <mousebind action="Press" button="Right">
816 <action name="Focus"/>
817 <action name="Raise"/>
818 <action name="Unshade"/>
819 <action name="ShowMenu">
820 <menu>client-menu</menu>
821 </action>
822 </mousebind>
823 </context>
824 <context name="AllDesktops">
825 <mousebind action="Click" button="Left">
826 <action name="ToggleOmnipresent"/>
827 </mousebind>
828 </context>
829 <context name="Shade">
830 <mousebind action="Click" button="Left">
831 <action name="ToggleShade"/>
832 </mousebind>
833 </context>
834 <context name="Iconify">
835 <mousebind action="Click" button="Left">
836 <action name="Iconify"/>
837 </mousebind>
838 </context>
839 <context name="Maximize">
840 <mousebind action="Press" button="Left">
841 <action name="Focus"/>
842 <action name="Raise"/>
843 <action name="Unshade"/>
844 </mousebind>
845 <mousebind action="Press" button="Right">
846 <action name="Focus"/>
847 <action name="Raise"/>
848 <action name="Unshade"/>
849 </mousebind>
850 <mousebind action="Click" button="Left">
851 <action name="ToggleMaximize"/>
852 </mousebind>
853 <mousebind action="Click" button="Right">
854 <action name="ToggleMaximize">
855 <direction>horizontal</direction>
856 </action>
857 </mousebind>
858 </context>
859 <context name="Close">
860 <mousebind action="Click" button="Left">
861 <action name="Close"/>
862 </mousebind>
863 </context>
864 <context name="Desktop">
865 <mousebind action="Click" button="Left">
866 <action name="Focus"/>
867 </mousebind>
868 <mousebind action="Click" button="A-Up">
869 <action name="GoToDesktop">
870 <to>previous</to>
871 </action>
872 </mousebind>
873 <mousebind action="Click" button="A-Down">
874 <action name="GoToDesktop">
875 <to>next</to>
876 </action>
877 </mousebind>
878 </context>
879 <context name="Root">
880 <mousebind action="Press" button="Middle">
881 <action name="ShowMenu">
882 <menu>client-list-combined-menu</menu>
883 </action>
884 </mousebind>
885 <mousebind action="Press" button="A-Right">
886 <action name="ShowMenu">
887 <menu>client-list-combined-menu</menu>
888 </action>
889 </mousebind>
890 <mousebind action="Press" button="Right">
891 <action name="ShowMenu">
892 <menu>root-menu</menu>
893 </action>
894 </mousebind>
895 </context>
896 </mouse>
897 <!-- ################################ Menu Settings ################################ -->
898 <menu>
899 <file>menu-icons.xml</file>
900 <hideDelay>400</hideDelay>
901 <middle>no</middle>
902 <submenuShowDelay>100</submenuShowDelay>
903 <submenuHideDelay>200</submenuHideDelay>
904 <applicationIcons>no</applicationIcons>
905 <manageDesktops>yes</manageDesktops>
906 </menu>
907 <!-- ################################ Applications Rules ################################ -->
908 <applications>
909 <application class="*">
910 <focus>yes</focus>
911 <decor>yes</decor>
912 </application>
913 <application name="obconf">
914 <position force="yes">
915 <x>center</x>
916 <y>center</y>
917 </position>
918 <size>
919 <width>50%</width>
920 </size>
921 </application>
922 <application title="MPlayer">
923 <decor>no</decor>
924 </application>
925 <application title="Nitrogen">
926 <position force="yes">
927 <x>center</x>
928 <y>center</y>
929 </position>
930 </application>
931 <!--
932 # this is an example with comments through out. use these to make your
933 # own rules, but without the comments of course.
934 # you may use one or more of the name/class/role/title/type rules to specify
935 # windows to match
936
937 <application name="the window's _OB_APP_NAME property (see obxprop)"
938 class="the window's _OB_APP_CLASS property (see obxprop)"
939 groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
940 groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
941 role="the window's _OB_APP_ROLE property (see obxprop)"
942 title="the window's _OB_APP_TITLE property (see obxprop)"
943 type="the window's _OB_APP_TYPE property (see obxprob)..
944 (if unspecified, then it is 'dialog' for child windows)">
945 # you may set only one of name/class/role/title/type, or you may use more
946 # than one together to restrict your matches.
947
948 # the name, class, role, and title use simple wildcard matching such as those
949 # used by a shell. you can use * to match any characters and ? to match
950 # any single character.
951
952 # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
953 # or desktop
954
955 # when multiple rules match a window, they will all be applied, in the
956 # order that they appear in this list
957
958
959 # each rule element can be left out or set to 'default' to specify to not
960 # change that attribute of the window
961
962 <decor>yes</decor>
963 # enable or disable window decorations
964
965 <shade>no</shade>
966 # make the window shaded when it appears, or not
967
968 <position force="no">
969 # the position is only used if both an x and y coordinate are provided
970 # (and not set to 'default')
971 # when force is "yes", then the window will be placed here even if it
972 # says you want it placed elsewhere. this is to override buggy
973 # applications who refuse to behave
974 <x>center</x>
975 # a number like 50, or 'center' to center on screen. use a negative number
976 # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
977 # the right edge (or bottom). use 'default' to specify using value
978 # provided by the application, or chosen by openbox, instead.
979 <y>200</y>
980 <monitor>1</monitor>
981 # specifies the monitor in a xinerama setup.
982 # 1 is the first head, or 'mouse' for wherever the mouse is
983 </position>
984
985 <size>
986 # the size to make the window.
987 <width>20</width>
988 # a number like 20, or 'default' to use the size given by the application.
989 # you can use fractions such as 1/2 or percentages such as 75% in which
990 # case the value is relative to the size of the monitor that the window
991 # appears on.
992 <height>30%</height>
993 </size>
994
995 <focus>yes</focus>
996 # if the window should try be given focus when it appears. if this is set
997 # to yes it doesn't guarantee the window will be given focus. some
998 # restrictions may apply, but Openbox will try to
999
1000 <desktop>1</desktop>
1001 # 1 is the first desktop, 'all' for all desktops
1002
1003 <layer>normal</layer>
1004 # 'above', 'normal', or 'below'
1005
1006 <iconic>no</iconic>
1007 # make the window iconified when it appears, or not
1008
1009 <skip_pager>no</skip_pager>
1010 # asks to not be shown in pagers
1011
1012 <skip_taskbar>no</skip_taskbar>
1013 # asks to not be shown in taskbars. window cycling actions will also
1014 # skip past such windows
1015
1016 <fullscreen>yes</fullscreen>
1017 # make the window in fullscreen mode when it appears
1018
1019 <maximized>true</maximized>
1020 # 'Horizontal', 'Vertical' or boolean (yes/no)
1021 </application>
1022
1023 # end of the example
1024-->
1025 </applications>
1026</openbox_config>
1027<!-- vim:sw=2
1028-->