~ubuntu-branches/debian/sid/openbox/sid

« back to all changes in this revision

Viewing changes to data/rc.xml

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde, Nico Golde, Eugenio Paolantonio
  • Date: 2011-10-03 22:59:30 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20111003225930-tdvyax5tx63dyoez
Tags: 3.5.0-1
[Nico Golde]
* New upstream release (Closes: #638783).
  - Fix crashes in the menu code (Closes: #563891).
* Add Brazilian translation to openbox.desktop,
  thanks Sérgio Cipolla (Closes: #627912).
* Remove 06_fix_swap_byte_order.patch, applied upstream.
* Bump debhelper dependency to >= 7.0.50~ due to override.
* Remove CHANGELOG from openbox.docs to prevent double installation.
* Add 02_fix_freedesktop_compliance.dpatch desktop file to
  /usr/share/applications.

[Eugenio Paolantonio]
* debian/patches:
  - Disabled 03_place_windows_in_quadrants.patch
  - Updated 01_rc.xml.patch and 06_fix_swap_byte_order.patch
  - Removed 04_fix_ftbfs_no-add-needed.patch and 20_24bits_support.patch
* debian/control:
  - Added myself to the Uploaders.
  - Build-Depends: removed libxau-dev, libxft-dev and python-xdg;
    added libimlib2-dev
  - openbox Suggests: added python-xdg
  - libobrender21 renamed to libobrender27
  - libobparser21 renamed to libobt0
* debian/rules:
  - Rewrote using a simpler debhelper syntax
  - Moved the install pass to openbox.install
* debian/*.{install,links,dirs}:
  - Updated.
* debian/openbox.xsession:
  - Removed. Openbox now ships it by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<!-- Do not edit this file, it will be overwritten on install.
4
4
        Copy the file to $HOME/.config/openbox/ instead. -->
5
5
 
6
 
<openbox_config xmlns="http://openbox.org/3.4/rc">
 
6
<openbox_config xmlns="http://openbox.org/3.4/rc"
 
7
                xmlns:xi="http://www.w3.org/2001/XInclude">
7
8
 
8
9
<resistance>
9
10
  <strength>10</strength>
35
36
  <center>yes</center>
36
37
  <!-- whether to place windows in the center of the free area found or
37
38
       the top left corner -->
38
 
  <monitor>Active</monitor>
 
39
  <monitor>Primary</monitor>
39
40
  <!-- with Smart placement on a multi-monitor system, try to place new windows
40
41
       on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
41
 
       the active window is -->
 
42
       the active window is, 'Primary' - only on the primary monitor -->
42
43
  <primaryMonitor>1</primaryMonitor>
43
44
  <!-- The monitor where Openbox should place popup dialogs such as the
44
45
       focus cycling popup, or the desktop switch popup.  It can be an index
98
99
    <slant>normal</slant>
99
100
    <!-- 'italic' or 'normal' -->
100
101
  </font>
101
 
  <font place="OnScreenDisplay">
 
102
  <font place="ActiveOnScreenDisplay">
 
103
    <name>sans</name>
 
104
    <size>9</size>
 
105
    <!-- font size in points -->
 
106
    <weight>bold</weight>
 
107
    <!-- 'bold' or 'normal' -->
 
108
    <slant>normal</slant>
 
109
    <!-- 'italic' or 'normal' -->
 
110
  </font>
 
111
  <font place="InactiveOnScreenDisplay">
102
112
    <name>sans</name>
103
113
    <size>9</size>
104
114
    <!-- font size in points -->
184
194
 
185
195
  <!-- Keybindings for desktop switching -->
186
196
  <keybind key="C-A-Left">
187
 
    <action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
 
197
    <action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
188
198
  </keybind>
189
199
  <keybind key="C-A-Right">
190
 
    <action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
 
200
    <action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
191
201
  </keybind>
192
202
  <keybind key="C-A-Up">
193
 
    <action name="DesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
 
203
    <action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
194
204
  </keybind>
195
205
  <keybind key="C-A-Down">
196
 
    <action name="DesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
 
206
    <action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
197
207
  </keybind>
198
208
  <keybind key="S-A-Left">
199
 
    <action name="SendToDesktopLeft"><dialog>no</dialog><wrap>no</wrap></action>
 
209
    <action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
200
210
  </keybind>
201
211
  <keybind key="S-A-Right">
202
 
    <action name="SendToDesktopRight"><dialog>no</dialog><wrap>no</wrap></action>
 
212
    <action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
203
213
  </keybind>
204
214
  <keybind key="S-A-Up">
205
 
    <action name="SendToDesktopUp"><dialog>no</dialog><wrap>no</wrap></action>
 
215
    <action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
206
216
  </keybind>
207
217
  <keybind key="S-A-Down">
208
 
    <action name="SendToDesktopDown"><dialog>no</dialog><wrap>no</wrap></action>
 
218
    <action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
209
219
  </keybind>
210
220
  <keybind key="W-F1">
211
 
    <action name="Desktop"><desktop>1</desktop></action>
 
221
    <action name="GoToDesktop"><to>1</to></action>
212
222
  </keybind>
213
223
  <keybind key="W-F2">
214
 
    <action name="Desktop"><desktop>2</desktop></action>
 
224
    <action name="GoToDesktop"><to>2</to></action>
215
225
  </keybind>
216
226
  <keybind key="W-F3">
217
 
    <action name="Desktop"><desktop>3</desktop></action>
 
227
    <action name="GoToDesktop"><to>3</to></action>
218
228
  </keybind>
219
229
  <keybind key="W-F4">
220
 
    <action name="Desktop"><desktop>4</desktop></action>
 
230
    <action name="GoToDesktop"><to>4</to></action>
221
231
  </keybind>
222
232
  <keybind key="W-d">
223
233
    <action name="ToggleShowDesktop"/>
235
245
  <keybind key="A-space">
236
246
    <action name="ShowMenu"><menu>client-menu</menu></action>
237
247
  </keybind>
238
 
  <keybind key="Print">
239
 
    <action name="Execute"><execute>gnome-screenshot</execute></action>
240
 
  </keybind>
 
248
  <!-- Take a screenshot of the current window with gnome-screenshot when Alt+Print are pressed -->
241
249
  <keybind key="A-Print">
242
 
    <action name="Execute"><execute>gnome-screenshot -w</execute></action>
 
250
    <action name="Execute"><command>gnome-screenshot -w</command></action>
243
251
  </keybind>
244
252
 
245
253
  <!-- Keybindings for window switching -->
246
254
  <keybind key="A-Tab">
247
 
    <action name="NextWindow"/>
 
255
    <action name="NextWindow">
 
256
      <finalactions>
 
257
        <action name="Focus"/>
 
258
        <action name="Raise"/>
 
259
        <action name="Unshade"/>
 
260
      </finalactions>
 
261
    </action>
248
262
  </keybind>
249
263
  <keybind key="A-S-Tab">
250
 
    <action name="PreviousWindow"/>
 
264
    <action name="PreviousWindow">
 
265
      <finalactions>
 
266
        <action name="Focus"/>
 
267
        <action name="Raise"/>
 
268
        <action name="Unshade"/>
 
269
      </finalactions>
 
270
    </action>
251
271
  </keybind>
252
272
  <keybind key="C-A-Tab">
253
273
    <action name="NextWindow">
254
274
      <panels>yes</panels><desktop>yes</desktop>
 
275
      <finalactions>
 
276
        <action name="Focus"/>
 
277
        <action name="Raise"/>
 
278
        <action name="Unshade"/>
 
279
      </finalactions>
 
280
    </action>
 
281
  </keybind>
 
282
 
 
283
  <!-- Keybindings for window switching with the arrow keys -->
 
284
  <keybind key="W-S-Right">
 
285
    <action name="DirectionalCycleWindows">
 
286
      <direction>right</direction>
 
287
    </action>
 
288
  </keybind>
 
289
  <keybind key="W-S-Left">
 
290
    <action name="DirectionalCycleWindows">
 
291
      <direction>left</direction>
 
292
    </action>
 
293
  </keybind>
 
294
  <keybind key="W-S-Up">
 
295
    <action name="DirectionalCycleWindows">
 
296
      <direction>up</direction>
 
297
    </action>
 
298
  </keybind>
 
299
  <keybind key="W-S-Down">
 
300
    <action name="DirectionalCycleWindows">
 
301
      <direction>down</direction>
255
302
    </action>
256
303
  </keybind>
257
304
 
265
312
      <command>kfmclient openProfile filemanagement</command>
266
313
    </action>
267
314
  </keybind>
 
315
  <!-- Launch gnome-screenshot when Print is pressed -->
 
316
  <keybind key="Print">
 
317
    <action name="Execute"><command>gnome-screenshot</command></action>
 
318
  </keybind>
268
319
</keyboard>
269
320
 
270
321
<mouse>
271
 
  <dragThreshold>8</dragThreshold>
 
322
  <dragThreshold>1</dragThreshold>
272
323
  <!-- number of pixels the mouse must move before a drag begins -->
273
324
  <doubleClickTime>200</doubleClickTime>
274
325
  <!-- in milliseconds (1000 = 1 second) -->
276
327
  <!-- Time before changing desktops when the pointer touches the edge of the
277
328
       screen while moving a window, in milliseconds (1000 = 1 second).
278
329
       Set this to 0 to disable warping -->
 
330
  <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
 
331
  <!-- Set this to TRUE to move the mouse pointer across the desktop when
 
332
       switching due to hitting the edge of the screen -->
279
333
 
280
334
  <context name="Frame">
281
335
    <mousebind button="A-Left" action="Press">
305
359
    </mousebind>
306
360
 
307
361
    <mousebind button="A-Up" action="Click">
308
 
      <action name="DesktopPrevious"/>
 
362
      <action name="GoToDesktop"><to>previous</to></action>
309
363
    </mousebind>
310
364
    <mousebind button="A-Down" action="Click">
311
 
      <action name="DesktopNext"/>
 
365
      <action name="GoToDesktop"><to>next</to></action>
312
366
    </mousebind>
313
367
    <mousebind button="C-A-Up" action="Click">
314
 
      <action name="DesktopPrevious"/>
 
368
      <action name="GoToDesktop"><to>previous</to></action>
315
369
    </mousebind>
316
370
    <mousebind button="C-A-Down" action="Click">
317
 
      <action name="DesktopNext"/>
 
371
      <action name="GoToDesktop"><to>next</to></action>
318
372
    </mousebind>
319
373
    <mousebind button="A-S-Up" action="Click">
320
 
      <action name="SendToDesktopPrevious"/>
 
374
      <action name="SendToDesktop"><to>previous</to></action>
321
375
    </mousebind>
322
376
    <mousebind button="A-S-Down" action="Click">
323
 
      <action name="SendToDesktopNext"/>
 
377
      <action name="SendToDesktop"><to>next</to></action>
324
378
    </mousebind>
325
379
  </context>
326
380
 
327
381
  <context name="Titlebar">
328
 
    <mousebind button="Left" action="Press">
329
 
      <action name="Focus"/>
330
 
      <action name="Raise"/>
331
 
    </mousebind>
332
382
    <mousebind button="Left" action="Drag">
333
383
      <action name="Move"/>
334
384
    </mousebind>
335
385
    <mousebind button="Left" action="DoubleClick">
336
 
      <action name="ToggleMaximizeFull"/>
337
 
    </mousebind>
338
 
 
339
 
    <mousebind button="Middle" action="Press">
340
 
      <action name="Lower"/>
341
 
      <action name="FocusToBottom"/>
342
 
      <action name="Unfocus"/>
 
386
      <action name="ToggleMaximize"/>
343
387
    </mousebind>
344
388
 
345
389
    <mousebind button="Up" action="Click">
346
 
      <action name="Shade"/>
347
 
      <action name="FocusToBottom"/>
348
 
      <action name="Unfocus"/>
349
 
      <action name="Lower"/>
 
390
      <action name="if">
 
391
        <shaded>no</shaded>
 
392
        <then>
 
393
          <action name="Shade"/>
 
394
          <action name="FocusToBottom"/>
 
395
          <action name="Unfocus"/>
 
396
          <action name="Lower"/>
 
397
        </then>
 
398
      </action>
350
399
    </mousebind>
351
400
    <mousebind button="Down" action="Click">
 
401
      <action name="if">
 
402
        <shaded>yes</shaded>
 
403
        <then>
 
404
          <action name="Unshade"/>
 
405
          <action name="Raise"/>
 
406
        </then>
 
407
      </action>
 
408
    </mousebind>
 
409
  </context>
 
410
 
 
411
  <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
 
412
    <mousebind button="Left" action="Press">
 
413
      <action name="Focus"/>
 
414
      <action name="Raise"/>
352
415
      <action name="Unshade"/>
353
 
      <action name="Raise"/>
 
416
    </mousebind>
 
417
 
 
418
    <mousebind button="Middle" action="Press">
 
419
      <action name="Lower"/>
 
420
      <action name="FocusToBottom"/>
 
421
      <action name="Unfocus"/>
354
422
    </mousebind>
355
423
 
356
424
    <mousebind button="Right" action="Press">
361
429
  </context>
362
430
 
363
431
  <context name="Top">
364
 
    <mousebind button="Left" action="Press">
365
 
      <action name="Focus"/>
366
 
      <action name="Raise"/>
367
 
      <action name="Unshade"/>
368
 
    </mousebind>
369
432
    <mousebind button="Left" action="Drag">
370
433
      <action name="Resize"><edge>top</edge></action>
371
434
    </mousebind>
372
435
  </context>
373
436
 
374
437
  <context name="Left">
375
 
    <mousebind button="Left" action="Press">
376
 
      <action name="Focus"/>
377
 
      <action name="Raise"/>
378
 
    </mousebind>
379
438
    <mousebind button="Left" action="Drag">
380
439
      <action name="Resize"><edge>left</edge></action>
381
440
    </mousebind>
382
 
 
383
 
    <mousebind button="Right" action="Press">
384
 
      <action name="Focus"/>
385
 
      <action name="Raise"/>
386
 
      <action name="ShowMenu"><menu>client-menu</menu></action>
387
 
    </mousebind>
388
441
  </context>
389
442
 
390
443
  <context name="Right">
391
 
    <mousebind button="Left" action="Press">
392
 
      <action name="Focus"/>
393
 
      <action name="Raise"/>
394
 
    </mousebind>
395
444
    <mousebind button="Left" action="Drag">
396
445
      <action name="Resize"><edge>right</edge></action>
397
446
    </mousebind>
398
 
 
399
 
    <mousebind button="Right" action="Press">
400
 
      <action name="Focus"/>
401
 
      <action name="Raise"/>
402
 
      <action name="ShowMenu"><menu>client-menu</menu></action>
403
 
    </mousebind>
404
447
  </context>
405
448
 
406
449
  <context name="Bottom">
407
 
    <mousebind button="Left" action="Press">
408
 
      <action name="Focus"/>
409
 
      <action name="Raise"/>
410
 
    </mousebind>
411
450
    <mousebind button="Left" action="Drag">
412
451
      <action name="Resize"><edge>bottom</edge></action>
413
452
    </mousebind>
414
453
 
415
 
    <mousebind button="Middle" action="Press">
416
 
      <action name="Lower"/>
417
 
      <action name="FocusToBottom"/>
418
 
      <action name="Unfocus"/>
419
 
    </mousebind>
420
 
 
421
454
    <mousebind button="Right" action="Press">
422
455
      <action name="Focus"/>
423
456
      <action name="Raise"/>
425
458
    </mousebind>
426
459
  </context>
427
460
 
428
 
  <context name="BLCorner">
429
 
    <mousebind button="Left" action="Press">
430
 
      <action name="Focus"/>
431
 
      <action name="Raise"/>
432
 
    </mousebind>
433
 
    <mousebind button="Left" action="Drag">
434
 
      <action name="Resize"/>
435
 
    </mousebind>
436
 
  </context>
437
 
 
438
 
  <context name="BRCorner">
439
 
    <mousebind button="Left" action="Press">
440
 
      <action name="Focus"/>
441
 
      <action name="Raise"/>
442
 
    </mousebind>
443
 
    <mousebind button="Left" action="Drag">
444
 
      <action name="Resize"/>
445
 
    </mousebind>
446
 
  </context>
447
 
 
448
 
  <context name="TLCorner">
449
 
    <mousebind button="Left" action="Press">
450
 
      <action name="Focus"/>
451
 
      <action name="Raise"/>
452
 
      <action name="Unshade"/>
453
 
    </mousebind>
454
 
    <mousebind button="Left" action="Drag">
455
 
      <action name="Resize"/>
456
 
    </mousebind>
457
 
  </context>
458
 
 
459
 
  <context name="TRCorner">
 
461
  <context name="TRCorner BRCorner TLCorner BLCorner">
460
462
    <mousebind button="Left" action="Press">
461
463
      <action name="Focus"/>
462
464
      <action name="Raise"/>
544
546
      <action name="Unshade"/>
545
547
    </mousebind>
546
548
    <mousebind button="Left" action="Click">
547
 
      <action name="ToggleMaximizeFull"/>
 
549
      <action name="ToggleMaximize"/>
548
550
    </mousebind>
549
551
    <mousebind button="Middle" action="Click">
550
 
      <action name="ToggleMaximizeVert"/>
 
552
      <action name="ToggleMaximize"><direction>vertical</direction></action>
551
553
    </mousebind>
552
554
    <mousebind button="Right" action="Click">
553
 
      <action name="ToggleMaximizeHorz"/>
 
555
      <action name="ToggleMaximize"><direction>horizontal</direction></action>
554
556
    </mousebind>
555
557
  </context>
556
558
 
567
569
 
568
570
  <context name="Desktop">
569
571
    <mousebind button="Up" action="Click">
570
 
      <action name="DesktopPrevious"/>
 
572
      <action name="GoToDesktop"><to>previous</to></action>
571
573
    </mousebind>
572
574
    <mousebind button="Down" action="Click">
573
 
      <action name="DesktopNext"/>
 
575
      <action name="GoToDesktop"><to>next</to></action>
574
576
    </mousebind>
575
577
 
576
578
    <mousebind button="A-Up" action="Click">
577
 
      <action name="DesktopPrevious"/>
 
579
      <action name="GoToDesktop"><to>previous</to></action>
578
580
    </mousebind>
579
581
    <mousebind button="A-Down" action="Click">
580
 
      <action name="DesktopNext"/>
 
582
      <action name="GoToDesktop"><to>next</to></action>
581
583
    </mousebind>
582
584
    <mousebind button="C-A-Up" action="Click">
583
 
      <action name="DesktopPrevious"/>
 
585
      <action name="GoToDesktop"><to>previous</to></action>
584
586
    </mousebind>
585
587
    <mousebind button="C-A-Down" action="Click">
586
 
      <action name="DesktopNext"/>
 
588
      <action name="GoToDesktop"><to>next</to></action>
587
589
    </mousebind>
588
590
 
589
591
    <mousebind button="Left" action="Press">
608
610
 
609
611
  <context name="MoveResize">
610
612
    <mousebind button="Up" action="Click">
611
 
      <action name="DesktopPrevious"/>
 
613
      <action name="GoToDesktop"><to>previous</to></action>
612
614
    </mousebind>
613
615
    <mousebind button="Down" action="Click">
614
 
      <action name="DesktopNext"/>
 
616
      <action name="GoToDesktop"><to>next</to></action>
615
617
    </mousebind>
616
618
    <mousebind button="A-Up" action="Click">
617
 
      <action name="DesktopPrevious"/>
 
619
      <action name="GoToDesktop"><to>previous</to></action>
618
620
    </mousebind>
619
621
    <mousebind button="A-Down" action="Click">
620
 
      <action name="DesktopNext"/>
 
622
      <action name="GoToDesktop"><to>next</to></action>
621
623
    </mousebind>
622
624
  </context>
623
625
</mouse>
643
645
       submenu will not be shown until it is clicked on -->
644
646
  <submenuHideDelay>400</submenuHideDelay>
645
647
  <!-- time to delay before hiding a submenu when selecting another
646
 
       entry in parent menu.
 
648
       entry in parent menu
647
649
       if this is a negative value, then the delay is infinite and the
648
650
       submenu will not be hidden until a different submenu is opened -->
649
651
  <applicationIcons>yes</applicationIcons>
656
658
<!--
657
659
  # this is an example with comments through out. use these to make your
658
660
  # own rules, but without the comments of course.
 
661
  # you may use one or more of the name/class/role/title/type rules to specify
 
662
  # windows to match
659
663
 
660
664
  <application name="the window's _OB_APP_NAME property (see obxprop)"
661
665
              class="the window's _OB_APP_CLASS property (see obxprop)"
662
666
               role="the window's _OB_APP_ROLE property (see obxprop)"
 
667
              title="the window's _OB_APP_TITLE property (see obxprop)"
663
668
               type="the window's _OB_APP_TYPE property (see obxprob)..
664
669
                      (if unspecified, then it is 'dialog' for child windows)">
665
 
  # you may set only one of name/class/role/type, or you may use more than one
666
 
  # together to restrict your matches.
 
670
  # you may set only one of name/class/role/title/type, or you may use more
 
671
  # than one together to restrict your matches.
667
672
 
668
 
  # the name, class, and role use simple wildcard matching such as those
 
673
  # the name, class, role, and title use simple wildcard matching such as those
669
674
  # used by a shell. you can use * to match any characters and ? to match
670
675
  # any single character.
671
676