-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.xml
1040 lines (905 loc) · 43.1 KB
/
rc.xml
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<?ignore <!--
The global default configuration file is found at:
/etc/xdg/openbox/rc.xml
Also /etc/xdg/openbox/rc.xml
The default configuration is online at:
http://git.icculus.org/?p=mikachu/openbox.git;a=blob_plain;f=data/rc.xml;hb=master
Documentation:
http://openbox.org/wiki/Help:Configuration
http://openbox.org/wiki/Help:Bindings
http://openbox.org/wiki/Help:Actions
--> ?>
<?ignore <!--
- FIXME - my forcing terminals (e.g. directly using lxterminal is just a quick hack until I revise terminal.sh to have a generic --command type syntax which is translated to the appropriate thing for each terminal.
- FIXME - I have no idea how to close the command prompt after launching the program. Sigh.
- On a 1920x1080 screen, the font "vga" for \lxterminal is --geometry=239x64+0+0
- On a 1920x1080 screen, the font "monospace 10" for \lxterminal is --geometry=239x59
--> ?>
<!-- This is a comment -->
<!-- Comments cannot normally include a double-hyphen. The solution is to enclose a comment block with an otherwise-unused (invalid) XML tag, like so: -->
<?ignore
Now a double-dash ( -- ) can be used (and ignored).
?>
<!-- I like to also wrap things with the everyday tag so that it will look obviously-commented with syntax highlighting, like so: -->
<?ignore <!--
Now a double-dash ( -- ) can be used (and ignored).
--> ?>
<?ignore <!--
While this XML code:
<tag/>text
.. will be accepted without error, this style of XML will not work under some cases. It's best to just never use />
--> ?>
<!-- The actual Openbox configuration begins: -->
<openbox_config xmlns="http://openbox.org/3.4/rc">
<resistance>
<!-- Resistance (in pixels) between two windows, before they can overlap. -->
<strength>10</strength>
<!-- Resistance (in pixels) between the window and the screen edge, before overlap. -->
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<!-- Always try to focus new windows when they appear. Other rules do apply. -->
<focusNew>yes</focusNew>
<!-- Move focus to a window when you move the mouse into it. -->
<followMouse>no</followMouse>
<!-- When followMouse is enabled, the mouse must be inside the window for this many milliseconds (1000 = 1 sec) before moving focus to it. -->
<focusDelay>0</focusDelay>
<!-- When followMouse is enabled, and a window is given focus by moving the mouse into it, also raise the window. -->
<raiseOnFocus>no</raiseOnFocus>
<!-- When followMouse is enabled, yes=focus the last used window when changing desktops, no=the one under the mouse pointer. -->
<focusLast>yes</focusLast>
<!-- When followMouse is enabled, move the focus under the mouse, even when the mouse is not moving. -->
<underMouse>no</underMouse>
</focus>
<placement>
<!--
New window placement.
Smart = Placed automatically.
UnderMouse = Placed under the mouse.
-->
<policy>Smart</policy>
<!--
With <policy>Smart</policy> and on a multi-monitor system, try to place new windows on:
Any = any monitor.
Mouse = where the mouse is.
Active = where the active window is.
-->
<monitor>Mouse</monitor>
<!--
The monitor where Openbox should place popup dialogs such as the focus cycling popup, or the desktop switch popup. It can be an index from 1, specifying a particular monitor. Or it can be one of the following:
- 'Mouse' - where the mouse is
- 'Active' - where the active window is
-->
<primaryMonitor>Mouse</primaryMonitor>
</placement>
<theme>
<name>minimal-spiralofhope</name>
<!-- 2019-03-05 - Lubuntu 18.10
<name>Lubuntu Arc</name>
-->
<titleLayout>NLDIMC</titleLayout>
<!--
Available characters are NDSLIMC, each can occur at most once.
N = window icon
L = window label (AKA title).
I = iconify
M = maximize
C = close
S = shade (roll up/down)
D = omnipresent (on all desktops).
-->
<!-- Should windows keep the border drawn by Openbox when window decorations are turned off? -->
<keepBorder>no</keepBorder>
<!-- A little iconification animation if enabled. -->
<animateIconify>no</animateIconify>
<!-- name = Font name -->
<!-- size = Font size, in points. -->
<!-- weight = normal, bold -->
<!-- slant = normal, italic -->
<font place="ActiveWindow"> <name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
<font place="InactiveWindow"> <name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
<font place="MenuHeader"> <name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
<font place="MenuItem"> <name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
<font place="ActiveOnScreenDisplay"> <name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
<font place="InactiveOnScreenDisplay"><name>Sans</name><size>12</size><weight>normal</weight><slant>normal</slant></font>
</theme>
<desktops>
<!--
This stuff is only used at startup, pagers allow you to change them during a session.
These are default values to use when other ones are not already set by other applications, or saved in your session.
Use `obconf` if you want to change these without having to log out and back in.
-->
<firstdesk>1</firstdesk>
<number>4</number>
<names>
<name>Desktop 1</name>
<name>Desktop 2</name>
<name>Desktop 3</name>
<name>Desktop 4</name>
</names>
<!-- The number of milliseconds to show the popup for when switching desktops. Set this to 0 to disable the popup. -->
<popupTime>0</popupTime>
</desktops>
<resize>
<!-- When resizing a window -->
<!--
yes = Keep redrawing the window's contents while it is being resized.
no = Do nothing with the window's contents while it is being resized.
Draw and redraw box to indicate the proposed resize.
When the user completes their resize, redraw the window at its new size.
-->
<drawContents>yes</drawContents>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupShow>Always</popupShow>
<!-- 'Center', 'Top', or 'Fixed' -->
<popupPosition>Center</popupPosition>
<!-- These are used if popupPosition is set to 'Fixed' -->
<popupFixedPosition>
<!-- Positive number for distance from left edge, negative number for distance from right edge, or 'Center' -->
<x>10</x>
<!-- Positive number for distance from top edge, negative number for distance from bottom edge, or 'Center' -->
<y>10</y>
</popupFixedPosition>
</resize>
<margins>
<!-- The border around a window. -->
<!-- You can reserve a portion of your screen where windows will not cover when they are maximized, or when they are initially placed. Many programs reserve space automatically, but you can use this in other cases. This isn't really a great idea since some windows will look odd if they cannot completely fullscreen. This is most especially jarring with a distracting desktop image or color. -->
<top>0</top>
<!-- I tend to click here to switch to applications, so a bottom margin a bad idea. -->
<!-- Remember that the taskbar is here. -->
<bottom>0</bottom>
<!-- There is usually a scroll bar here. -->
<right>0</right>
<!-- This isn't a bad idea, but I didn't end up using it and it just looked odd. -->
<left>0</left>
</margins>
<!-- This is for "dockapps", some ancient tray-like concept that I don't understand or use: -->
<dock>
<!-- Where to show the dock.
TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Floating
-->
<position>BottomRight</position>
<!-- When position is set to _Floating_, these two specify the pixel position of the dock. -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<!-- The layout direction for dockapps
Vertical, Horizontal
-->
<direction>Horizontal</direction>
<!-- The window layer to put the dock in.
The dock can be raised and lowered by left and middle clicking on it, among windows in the specified layer.
Above, Normal, Below
-->
<stacking>Above</stacking>
<!-- When position is set to Floating, this is always _yes_. You can use margins to emulate _no_.
If _yes_, it won't stop windows from being placed or maximized over it.
-->
<noStrut>no</noStrut>
<!-- Hide the dock automatically when the mouse is not over it. -->
<autoHide>no</autoHide>
<!-- If autoHide is _yes_, these are the delay for hiding or showing the dock.
In milliseconds.
-->
<hideDelay>300</hideDelay>
<showDelay>300</showDelay>
<!-- Which button to use for moving individual dockapps around in the dock.
'Left', 'Middle', 'Right'
-->
<moveButton>Left</moveButton>
</dock>
<!-- Keybindings for applications: -->
<keyboard>
<!-- Note that I don't use chains. -->
<!--
<chainQuitKey>C-g</chainQuitKey>
-->
<keybind key="W-d"> <action name="ToggleShowDesktop"></action></keybind>
<keybind key="S-W-1"> <action name="SendToDesktop"><desktop>1</desktop><follow>no</follow></action></keybind>
<keybind key="S-W-2"> <action name="SendToDesktop"><desktop>2</desktop><follow>no</follow></action></keybind>
<keybind key="S-W-3"> <action name="SendToDesktop"><desktop>3</desktop><follow>no</follow></action></keybind>
<keybind key="S-W-4"> <action name="SendToDesktop"><desktop>4</desktop><follow>no</follow></action></keybind>
<keybind key="W-1"> <action name="Desktop"><desktop>1</desktop></action></keybind>
<keybind key="W-2"> <action name="Desktop"><desktop>2</desktop></action></keybind>
<keybind key="W-3"> <action name="Desktop"><desktop>3</desktop></action></keybind>
<keybind key="W-4"> <action name="Desktop"><desktop>4</desktop></action></keybind>
<keybind key="W-Left"> <action name="DesktopLeft"> <wrap>no</wrap></action></keybind>
<keybind key="C-W-Left"> <action name="DesktopLeft"> <wrap>no</wrap></action></keybind>
<keybind key="W-Right"> <action name="DesktopRight"> <wrap>no</wrap></action></keybind>
<keybind key="C-W-Right"><action name="DesktopRight"> <wrap>no</wrap></action></keybind>
<keybind key="S-W-Left"> <action name="SendToDesktopLeft"> <wrap>no</wrap></action></keybind>
<keybind key="S-W-Right"><action name="SendToDesktopRight"><wrap>no</wrap></action></keybind>
<keybind key="A-F4"> <action name="Close"> </action></keybind>
<keybind key="A-Escape"> <action name="Lower"> </action>
<action name="FocusToBottom"></action>
<action name="Unfocus"> </action>
</keybind>
<!-- BUG? - "space" needs to be lowercase. -->
<keybind key="A-space"> <action name="ShowMenu"><menu>client-menu</menu></action></keybind>
<keybind key="W-space"> <action name="ShowMenu"><menu>root-menu </menu></action></keybind>
<!--
NextWindow
Option Default Value Description
<dialog> list Specifies the type of dialog to be shown on screen with icons for all the windows which can be focused. Choices are "list", "icons", or "none". If "none" is selected then no dialog will be shown.
<bar> yes A boolean (yes/no) which specifies if the focus indicator is shown which highlights the window that will be focused.
<raise> no A boolean (yes/no) which specifies if windows are temporarily raised to the front while cycling through them.
<allDesktops> no A boolean (yes/no) which when enabled lets you cycle focus between windows on all desktops, instead of only on the current desktop.
<panels> no A boolean (yes/no) which when enabled lets you cycle focus to/between panel windows such as your taskbar. This can be combined with <desktop>.
<desktop> no A boolean (yes/no) which when enabled lets you cycle focus to the desktop window, if one exists (such as in GNOME or KDE). This can be combined with <panels>.
<linear> no A boolean (yes/no) which when enabled causes focus to cycle in a fixed ordering, rather than in the order which windows have been last focused.
<interactive> yes A boolean (yes/no) which when disabled causes the action to immediately switch focus to the next target.
<finalactions> Focus, Raise, Unshade A list of actions to run on the window which the user finally selects using this action.
-->
<!-- The alt-tab "popup pager" no longer appears on every monitor. -->
<!-- It used to, but was changed/removed in 3.4.9 -->
<!-- http://openbox.org/wiki/Openbox:Changelog#3.4.9 -->
<!-- I see no way to have the alt-tab only display the current monitor's programs. I researched for a long while, to no avail. -->
<keybind key="A-Tab"><action name="NextWindow"><allDesktops>no </allDesktops></action></keybind>
<keybind key="W-Tab"><action name="NextWindow"><allDesktops>yes</allDesktops></action></keybind>
<keybind key="A-S-Tab"><action name="PreviousWindow"><allDesktops>no </allDesktops></action></keybind>
<keybind key="W-S-Tab"><action name="PreviousWindow"><allDesktops>yes</allDesktops></action></keybind>
<keybind key="F11"><action name="ToggleFullscreen"></action></keybind>
<!--
<keybind key="A-Return"> <action name="ToggleMaximize"></action></keybind>
-->
<keybind key="W-Return"> <action name="ToggleMaximizeVert"></action></keybind>
<keybind key="W-S-Return"><action name="ToggleMaximizeHorz"></action></keybind>
<keybind key="W-KP_1"><action name="MoveResizeTo"><x> 1</x><y> -1</y></action></keybind>
<keybind key="W-KP_2"><action name="MoveResizeTo"> <y> -1</y></action></keybind>
<keybind key="W-KP_3"><action name="MoveResizeTo"><x> -1</x><y> -1</y></action></keybind>
<keybind key="W-KP_4"><action name="MoveResizeTo"><x> 0</x> </action></keybind>
<keybind key="W-KP_5"><action name="MoveResizeTo"><x>center</x><y>center</y></action></keybind>
<keybind key="W-KP_6"><action name="MoveResizeTo"><x> -1</x> </action></keybind>
<keybind key="W-KP_7"><action name="MoveResizeTo"><x> 0</x><y> 0</y></action></keybind>
<keybind key="W-KP_8"><action name="MoveResizeTo"> <y> 0</y></action></keybind>
<keybind key="W-KP_9"><action name="MoveResizeTo"><x> -1</x><y> 0</y></action></keybind>
<!-- Move applications between monitors. -->
<keybind key="C-S-A-Left"> <action name="MoveResizeTo"><monitor>1</monitor></action></keybind>
<keybind key="C-S-A-Right"><action name="MoveResizeTo"><monitor>2</monitor></action></keybind>
<!-- I can't have it bounce between monitors, but at least this will work. -->
<keybind key="C-W-x"> <action name="MoveResizeTo"><monitor>2</monitor></action></keybind>
<!-- Well.. no, not really:
<keybind key="C-W-x"><action name="SendToDesktopRight"><wrap>yes</wrap></action></keybind>
-->
<keybind key="W-`"><action name="ToggleOmnipresent"></action></keybind>
<!-- In Windows 10, this opens the start menu. -->
<keybind key="W-x"><action name="Execute"><command>
\lxpanelctl menu
</command></action></keybind>
<!-- In Windows 10 ,this opens the application search dialog. -->
<keybind key="W-s"><action name="Execute"><command>
~/l/shell-random/live/sh/scripts/run.sh
</command></action></keybind>
<!-- Note that this hotkey combination won't work within VirtualBox. -->
<keybind key="C-A-Delete"><action name="Execute"><command>
\lxtask
</command></action></keybind>
<keybind key="C-A-Escape"><action name="Execute"><command>
\xkill
</command></action></keybind>
<?ignore <!-- Multimedia keyboard features (buttons, hotkeys, dials, etc.)
Instead of using a particular application's hotkeys or global hotkeys, you can program OpenBox to see the keys.
/usr/share/X11/XKeysymDB
https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h
If you get a new multimedia keyboard and want to map its keys more easily, then:
- Open a terminal
- Run `xev`
- With your mouse over the xev window (not the terminal)
- Press your multimedia key
- You will see text like the following, which shows 'XF86Tools':
KeyRelease event, serial 47, synthetic NO, window 0x7600001,
root 0x2d5, subw 0x0, time 70249838, (243,115), root:(245,555),
state 0x10, keycode 179 (keysym 0x1008ff81, XF86Tools), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
--> ?>
<!-- Begin keybinds for the Logitech K310 -->
<keybind key="XF86HomePage"> <action name="Execute"><command>
\x-www-browser
</command></action></keybind>
<keybind key="XF86Search"> <action name="Execute"><command>
\x-terminal-emulator
</command></action></keybind>
<keybind key="XF86Mail"> <action name="Execute"><command>
\x-terminal-emulator
</command></action></keybind>
<keybind key="XF86Calculator"> <action name="Execute"><command>
\xcalc
</command></action></keybind>
<?ignore <!-- Alternatives
\galculator
\gnome-calc2
\kcalc
--> ?>
<keybind key="XF86Tools"> <action name="Execute"><command>
\x-terminal-emulator
</command></action></keybind>
<!--
TODO - also simultaneously support deadbeef?
-->
<keybind key="XF86AudioPrev"> <action name="Execute"><command> \audacious --rew </command></action></keybind>
<!-- I like to toggle play/pause -->
<keybind key="XF86AudioPlay"> <action name="Execute"><command> \audacious --play-pause </command></action></keybind>
<keybind key="XF86AudioNext"> <action name="Execute"><command> \audacious --fwd </command></action></keybind>
<?ignore <!-- Alternatives
\python pvol.py -m
# 2017-12-09 - BUG: `aumix` cannot toggle sound from mute back up again.
\amixer -q sset Master toggle
# Learn the channel name with `amixer scontrols`, but -D pulse seems to work..
--> ?>
<keybind key="XF86AudioMute"> <action name="Execute"><command> \amixer -D pulse sset Master 1+ toggle </command></action></keybind>
<keybind key="XF86AudioLowerVolume"><action name="Execute"><command> \amixer -D pulse sset Master 3%- </command></action></keybind>
<keybind key="XF86AudioRaiseVolume"><action name="Execute"><command> \amixer -D pulse sset Master 3%+ </command></action></keybind>
<?ignore <!-- Alternatives
# Warning: pyvol has a noticeable delay..
python pvol.py -c 5
aumix -v+10
\amixer -q sset Master 3%+
--> ?>
<keybind key="XF86Sleep"><action name="Execute"><command> \x-terminal-emulator </command></action></keybind>
<!-- / End keybinds for the Logitech K310 -->
<?ignore <!-- My earlier Dell multimedia keyboard - FIXME - model number
<keybind key="XF86AudioMedia"> <action name="Execute"> <command> \audacious </command> </action> </keybind>
<keybind key="XF86WWW"> <action name="Execute"> <command> \x-www-browser </command> </action> </keybind>
<keybind key="XF86Terminal"> <action name="Execute"> <command> \x-terminal-emulator </command> </action> </keybind>
<keybind key="XF86MyComputer"> <action name="Execute"> <command> \spacefm --new-window --no-saved-tabs </command> </action> </keybind>
--> ?>
<keybind key="A-F5"><action name="Reconfigure"></action></keybind>
<keybind key="A-S-F5"><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
\sh -c "\
\geany \\
$( \realpath ~/.themes/minimal-spiralofhope/openbox-3/themerc ) \\
$( \realpath ~/.config/openbox/rc.xml ) ;\
\waitpid $! ;\
\openbox --reconfigure ;\
\waitpid $! ;\
\xrefresh \\
"
</command></action></keybind>
<keybind key="A-F6"><action name="Execute"><command>
<!-- Devuan -->
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\urxvtc \
-geometry 28x1 \
+sb ` # Remove the scroll bar ` \
-title synaptic \
-e /bin/su --command \synaptic& root
</command></action></keybind>
<?ignore <!-- Alternatives
# rxvt-unicode (urxvt, urxvtc is the client)
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\urxvtc \
-geometry 28x1 \
+sb ` # Remove the scroll bar ` \
-title synaptic \
-e \sudo \synaptic
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\lxterminal \
--geometry=28x1 \
--title="synaptic" \
--command="\sudo \synaptic"
--> ?>
<keybind key="C-S-Escape"><action name="Execute"><command>
\qterminal --execute="htop --user=user"
<?ignore <!-- Alternatives
\lxterminal --geometry=239x64+0+0 --command="\htop --user=user"
--> ?>
</command></action></keybind>
<?ignore <!-- Notes
- Note that htop has a feature to hide processes, but if you want to *force* it as a permissions thing, add something like this to your /etc/fstab:
proc /proc proc defaults,noatime,nodiratime,hidepid=2 0 0
--> ?>
<?ignore <!-- Alternatives
\lxtask
\xfce4-taskmanager
# FIXME - I have no idea how to close the command prompt after launching the program. Sigh.
\urxvtc \
-geometry 239x64 \
+sb ` # Remove the scroll bar ` \
-e \htop --user=user
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\rxvt \
-si \
+vb \
+sb \
-j \
-fn vga \
-bg black \
-fg gray \
-cr darkgreen \
-sl 10000 \
-geometry 239x64+0+0 \
-e \htop
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\xterm \
-si \
+vb \
+sb \
-j \
-s \
-fn vga \
+fbx \
-bg black \
-fg gray \
-cr darkgreen \
-sl 10000 \
-geometry 239x64+0+0 \
-e \htop
\xterm \
` # Output to the window should not have it scroll to the bottom.` \
-si \
` # No visual bell. ` \
+vb \
` # No scrollbar. ` \
+sb \
` # Jump scrolling. Normally, text is scrolled one line at a time; this option allows xterm to move multiple lines at a time so that it does not fall as far behind. Its use is strongly recommended since it makes xterm much faster when scanning through large amounts of text. ` \
-j \
` # Indicates that xterm may scroll asynchronously, meaning that the screen does not have to be kept completely up to date while scrolling. This allows xterm to run faster when network latencies are very high and is typically useful when running across a very large internet or many gateways. ` \
-s \
` # My font addition ` \
-fn vga \
` # xterm should assume that the normal and bold fonts have VT100 line-drawing characters. It sets the forceBoxChars resource to "true". ` \
+fbx \
-bg black \
-fg gray \
-cr darkgreen \
-sl 10000 \
-geometry 80x24+0+0 \
-e \htop
# WHAT THE FUCK evilvte, y u no work with geometreeeeeeeeeeeeeeeeeeeeeeeee
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\evilvte \
-g +239+59 \
-e \htop
# Font size 12.
\sakura \
--columns=212 \
--rows=57 \
--execute="\htop"
--> ?>
<keybind key="C-A-s"><action name="Execute"><command>
~/l/shell-random/live/zsh/scripts/terminal.sh
</command></action></keybind>
<?ignore <!--
<keybind key="W-S-s"><action name="Execute"><command>
~/l/shell-random/live/zsh/scripts/terminal.sh with_lines
</command></action></keybind>
--> ?>
<keybind key="W-m"><action name="Execute"><command>
\lxterminal --geometry=239x64+0+0 --command="\alsamixer"
</command></action></keybind>
<?ignore <!-- Alternatives:
\pavucontrol
--> ?>
<keybind key="C-A-c"><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
\chromium
</command></action></keybind>
<keybind key="C-A-w"><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
\sh -c "\
profile_name='default' ;\
\rm --force ~'/.moonchild productions/pale moon/profiles/'"$profile_name"*/.parentlock ;\
\palemoon -P "$profile_name" -new-tab "about:blank" ;\
"
</command></action></keybind>
<?ignore <!-- Alternatives
~/l/shell-random/live/dead/chromium_pick-profile.sh
\chromium-browser
\links -g
\midori
\sh -c "\
profile_name='default' ;\
'/l/live/OS/bin/Pale Moon/delete_parentlock.sh' "$profile_name" ;\
palemoon -P "$profile_name" -new-tab "about:blank" ;\
"
--> ?>
<keybind key="C-A-l"><action name="Execute"><command>
~/l/shell-random/live/sh/scripts/screensaver-control.sh
</command></action></keybind>
<!--
<keybind key="W-l"> <action name="Execute"> <command>
~/l/shell-random/live/sh/scripts/screensaver-control.sh locknow
</command> </action> </keybind>
-->
<keybind key="C-A-W-l"><action name="Execute"><command>
<!-- 2016-12-07, on Devuan -->
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\urxvtc \
-geometry 28x1 \
+sb ` # Remove the scroll bar ` \
-title 'hibernate' \
-e su -c '/usr/sbin/hibernate'
</command></action></keybind>
<?ignore <!-- Alternatives
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\lxterminal \
--geometry=28x1 \
--title="pm-suspend" \
--command="\sudo \pm-suspend"
# 2016-04-19, on Slackware 14.1
# 2016-11-26, on Devuan
\sh -c "\
~/l/shell-random/live/sh/scripts/screensaver-control.sh locknow & \
` # sudo has been set up to not require a password. See /etc/sudoers ` \
\sudo /usr/sbin/pm-suspend \
"
# 2016-03-29, on Slackware 14.1
\sh -c "\
\xset dpms 0 0 5 \
\xautolock -locknow \
\sudo /usr/sbin/pm-suspend \
\xset dpms 0 0 180 \
"
# 2016-03-28, on Slackware 14.1
\sh -c "\
\xset dpms 0 0 5 \
\sudo /usr/sbin/pm-suspend \
\slock \
xset dpms 0 0 180 \
"
# 2016-03-26, on Lubuntu (version not recorded)
# rxvt-unicode (urxvt, urxvtc is the client)
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\urxvtc \
-geometry 28x1 \
+sb ` # Remove the scroll bar ` \
-title pm-suspend \
-e \sh -c "\
\sudo \echo "pm-suspend" \
\sudo stop network-manager \
\sudo \pm-suspend \
\xset dpms 0 0 5 \
` # It doesn't seem like a good idea to just manually trigger slock like this, but I can think of no other way of having the screen locked when un-suspending. ` \
\slock \
\xset dpms 0 0 180 \
\sudo start network-manager \
slock-capital-punishment.sh on \
"
--> ?>
<keybind key="C-A-S-W-l"><action name="Execute"><command>
<!-- 2016-03-28, on Slackware 14.1 -->
\sudo /usr/sbin/poweroff
</command></action></keybind>
<?ignore <!-- Alternatives
# 2016-03-26, on Lubuntu (version not recorded)
# rxvt-unicode (urxvt, urxvtc is the client)
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\urxvtc \
-geometry 28x1 \
+sb ` # Remove the scroll bar ` \
-title poweroff \
-e \sudo \poweroff
~/l/shell-random/live/zsh/scripts/terminal.sh FORCE \
\lxterminal \
--geometry=28x1 \
--title="poweroff" \
--command="\sudo \poweroff"
\gksudo \poweroff
--> ?>
<keybind key="W-e"><action name="Execute"><command>
~/l/shell-random/live/sh/scripts/file-manager.sh
</command></action></keybind>
<!--
\Thunar
\pcmanfm
-->
<keybind key="W-f"><action name="Execute"><command>
\spacefm --find-files --new-window --no-saved-tabs /live/__ </command></action><?ignore
<!-- I can't run spacefm twice like this, because the main window will always appear overtop of the find dialog:
<action name="Execute"><command>
\spacefm --new-window --no-saved-tabs /live/__
</command></action>
--> ?></keybind>
<?ignore <!-- Alternatives
\Thunar
\pcmanfm
# For a file manager which doesn't support tabs, it's theoretically possible to do something like this:
\xtoolwait \
\filemanager &\
wmpid=$! && \
wait $wmpid && \
\wmctrl -F -r "filemanager #1" -e 1,0,0,800,1148 && \
\wmctrl -F -r "filemanager #0" -e 1,800,0,800,1148
--> ?>
<keybind key="C-A-e"><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
~/l/shell-random/live/sh/scripts/projects-open.sh
</command></action><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
\claws-mail
</command></action></keybind>
<keybind key="W-k"><action name="Execute"><startupnotify><enabled>yes</enabled></startupnotify><command>
\mtpaint ~/__/__.jpg
</command></action></keybind>
<?ignore <!-- Alternatives:
\kolourpaint ~/__/__.jpg
--> ?>
<keybind key="C-A-r"><action name="Execute"><command>
\lxterminal --geometry=24x1 -T 'hidden title centered' --command="\sudo \lxpanelctl run"
</command></action></keybind>
<keybind key="C-A-S-r"><action name="Execute"><command>
\lxterminal --geometry=24x1 -T 'hidden title centered' --command="\sudo ~/l/shell-random/live/sh/scripts/run.sh"
</command></action></keybind>
<keybind key="W-r"><action name="Execute"><command>
~/l/shell-random/live/sh/scripts/run.sh
</command></action></keybind>
<keybind key="Print"><action name="Execute"><command>
\lxterminal --geometry=40x11+0+0 --command="~/l/shell-random/live/sh/scripts/screenshot.sh"
</command></action></keybind>
<!-- As with Windows 10 -->
<keybind key="W-S-s"><action name="Execute"><command>
\lxterminal --geometry=40x11+0+0 --command="~/l/shell-random/live/sh/scripts/screenshot.sh"
</command></action></keybind>
<?ignore <!-- Alternatives
\urxvtc \
-e ~/l/shell-random/live/sh/scripts/screenshot.sh
\scrot --select %Y-%m-%d_$wx$h.png --exec '\mv $f /live/__'
\mtpaint -s
\ddm-screenshot
\ksnapshot
\sh -c "\
\urxvt -title 'screenshot' -geometry 120x50+0+0 -e \\
\dialog --no-shadow --msgbox 'screenshot' 0 0 ;\\
\scrot --select 'screenshot--%Y-%m-%d_%H:%M:%S--$wx$h.png' --exec '\mv $f /live/__ ; \gpicview /live/__/$f' \\
"
\sh -c "\
\urxvt -title 'screenshot' -geometry 14x5+0+0 -e \\
\dialog --no-shadow --msgbox 'screenshot' 0 0 ;\\
\scrot --select 'screenshot--%Y-%m-%d_%H:%M:%S--$wx$h.png' --exec '\mv $f /live/__ ; \gpicview /live/__/$f' \\
"
sh -c "~/text.sh "this is a test" \
scrot \
"
\urxvt --geometry 40x2+1+1 -title 'Screenshot' -e ;\
\echo 'Click to select a window' ;\
\echo 'Drag a rectangle for an area' ;\
\scrot --select %Y-%m-%d_$wx$h.png --exec '\mv $f /live/__'
\urxvt --geometry 40x1+1+1 -e \scrot --count --delay 5 --select /live/__
--> ?>
<?ignore <!--
<keybind key="Shift-Print"> <action name="Execute"> <command> </command> </action> </keybind>
<keybind key="Alt-Print"> <action name="Execute"> <command> </command> </action> </keybind>
--> ?>
<?ignore <!--
# W-p
~/l/shell-random/live/sh/scripts/dual-monitors.sh
\rdesktop 192.168.0.13 -a 16 -g800x420 -N -P -r clipboard:PRIMARYCLIPBOARD -u linaro -z
\rdesktop 192.168.0.13 -A -N -P -r clipboard:PRIMARYCLIPBOARD -u linaro -z
--> ?>
</keyboard>
<mouse>
<!-- Number of pixels the mouse must move before a drag begins -->
<dragThreshold>8</dragThreshold>
<!-- In milliseconds (1000 = 1 second) -->
<doubleClickTime>300</doubleClickTime>
<!--
Time before changing desktops when the pointer touches the edge of the screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping.
-->
<screenEdgeWarpTime>0</screenEdgeWarpTime>
<!-- The entire window frame for any window (except the desktop). This includes both the window decorations (if any) and the application window itself. -->
<!-- Clicks will NOT be passed through to the client! -->
<context name="Frame">
<mousebind button="A-Left" action="Drag"><action name="Move"> </action><action name="Unmaximize"></action></mousebind>
<mousebind button="A-Right" action="Drag"><action name="Resize"></action><action name="Unmaximize"></action></mousebind>
<mousebind action="Press" button="A-Shift-Right"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind>
<mousebind action="Press" button="W-Right"> <action name="ShowMenu"><menu>root-menu</menu></action></mousebind>
<mousebind button="A-Left" action="Press">
<action name="Raise"></action>
<action name="Focus"></action>
</mousebind>
<mousebind action="DoubleClick" button="A-Left">
<action name="Focus"></action>
<action name="Raise"></action>
<action name="ToggleMaximizeFull"></action>
</mousebind>
<!-- Interferes with alt-leftclick-drag -->
<!--
<mousebind action="Press" button="A-Right">
<action name="Focus"></action>
<action name="Raise"></action>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
-->
</context>
<context name="Client">
<mousebind button="Left" action="Press"><action name="Raise"></action><action name="Focus"></action></mousebind>
<mousebind button="Middle" action="Press"><action name="Raise"></action><action name="Focus"></action></mousebind>
<mousebind button="Right" action="Press"><action name="Raise"></action><action name="Focus"></action></mousebind>
</context>
<context name="Titlebar">
<!-- Remember that there is no titlebar if the window is "maximized". -->
<mousebind button="Left" action="Press">
<action name="Raise"></action>
<action name="Focus"></action>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Move"></action>
</mousebind>
<mousebind button="Left" action="DoubleClick"><action name="ToggleMaximizeFull"></action></mousebind>
<mousebind button="Middle" action="Click"> <action name="ToggleMaximizeFull"></action></mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"></action>
</mousebind>
<!--
<mousebind button="Middle" action="DoubleClick"> <action name="ToggleMaximizeVert"></action> </mousebind>
-->
<!-- A nice idea, but this doesn't work because of the menu. -->
<!--
<mousebind button="Right" action="DoubleClick"> <action name="ToggleMaximizeHorz"></action> </mousebind>
-->
<mousebind button="Right" action="Click">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<!-- The different sides of the frame -->
<context name="Left"> <mousebind button="Right" action="Click"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind></context>
<context name="Top"> <mousebind button="Right" action="Click"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind></context>
<context name="Right"> <mousebind button="Right" action="Click"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind></context>
<context name="Bottom"><mousebind button="Right" action="Click"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind></context>
<context name="Left"> <mousebind button="Left" action="Drag"><action name="Resize"></action></mousebind></context>
<context name="Top"> <mousebind button="Left" action="Drag"><action name="Resize"></action></mousebind></context>
<context name="Right"> <mousebind button="Left" action="Drag"><action name="Resize"></action></mousebind></context>
<context name="Bottom"><mousebind button="Left" action="Drag"><action name="Resize"></action></mousebind></context>
<!-- The top-left application icon -->
<context name="Icon">
<mousebind button="Left" action="Click"><action name="ShowMenu"><menu>client-menu</menu></action></mousebind>
<mousebind button="Right" action="Click"><action name="ShowMenu"><menu>client-menu</menu></action></mousebind>
<!-- Double-click a title bar to switch between windowed and maximized -->
<mousebind action="DoubleClick" button="Left">
<action name="Focus"></action>
<action name="Close"></action>
</mousebind>
</context>
<!-- The "pin" icon in the taskbar -->
<context name="AllDesktops">
<mousebind button="Left" action="Click"><action name="ToggleOmnipresent"></action></mousebind>
<mousebind button="Right" action="Click"><action name="ToggleOmnipresent"></action></mousebind>
</context>
<!-- "Iconify" means to minimize -->
<context name="Iconify">
<mousebind button="Left" action="Click"><action name="Iconify"></action></mousebind>
<mousebind button="Right" action="Click"><action name="Iconify"></action></mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Click"><action name="ToggleMaximizeFull"></action></mousebind>
<mousebind button="Middle" action="Click"><action name="ToggleMaximizeVert"></action></mousebind>
<mousebind button="Right" action="Click"><action name="ToggleMaximizeHorz"></action></mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Click"><action name="Close"></action></mousebind>
</context>
<!-- The "desktop" -->
<context name="Root">
<mousebind button="Right" action="Click"><action name="ShowMenu"><menu>root-menu</menu></action></mousebind>
<!--
<mousebind button="Middle" action="Press"> <action name="ShowMenu"> <menu>client-list-combined-menu</menu> </action> </mousebind>
-->
</context>
</mouse>
<menu>
<!-- TODO - make my own custom menu, with my common applications? -->
<!-- You can specify more than one menu file in here and they are all loaded, just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- Default menu file (or custom one in $HOME/.config/openbox/) -->
<file>menu.xml</file>
<!-- If a press-release lasts longer than this setting (in milliseconds), the menu is hidden again. -->
<!-- FIXME - what in the fuck is this for? -->
<hideDelay>200</hideDelay>
<!-- Center submenus vertically about the parent entry. -->
<middle>no</middle>
<!-- Delay before showing a submenu. -->
<submenuShowDelay>0</submenuShowDelay>
<!-- Icons appearing in the Desktop menu (client-list-menu) and Windows menu (client-list-combined-menu). -->
<applicationIcons>yes</applicationIcons>
<!-- Whether to show the Add new desktop and Remove last desktop entries in the Desktop and Windows menus. -->
<manageDesktops>no</manageDesktops>
</menu>
<applications>
<?ignore <!-- Notes
# You may use one or more of the name/class/role/title/type rules to specify windows to match
# You may set only one of name/class/role/title/type, or you may use more than one together to restrict your matches.
# The name, class, role, and title use simple wildcard matching such as those used by a shell. you can use * to match any characters and ? to match any single character.
# The type is one of: normal, dialog, splash, utility, menu, toolbar, dock, desktop
# When multiple rules match a window, they will all be applied, in the order that they appear in this list
<application name="the window's _OB_APP_NAME property (see obxprop)"
class="the window's _OB_APP_CLASS property (see obxprop)"
role="the window's _OB_APP_ROLE property (see obxprop)"
title="the window's _OB_APP_TITLE property (see obxprop)"
type="the window's _OB_APP_TYPE property (see obxprob)..
(if unspecified, then it is 'dialog' for child windows)">
#
# Each rule element can be left out or set to 'default' to specify to not change that attribute of the window
#
# Enable or disable window decorations
<decor>yes</decor>
#
# Make the window shaded when it appears, or not
<shade>no</shade>
#
# When force is "yes", then the window will be placed here even if wants to be placed elsewhere. This is to override buggy applications who refuse to behave.
<position force="no">
# A number like 50
# Or 'center' to center on screen
# Use a negative number to start from the right (or bottom for <y>), ie -50 is 50 pixels from the right edge (or bottom).
# Both x and y must be provided and not set to 'default'. Otherwise, this won't work.
<x>center</x>
<y>200</y>
#
# Specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
<monitor>1</monitor>
</position>
#
# If the window should try be given focus when it appears. if this is set to yes it doesn't guarantee the window will be given focus. Some restrictions may apply, but Openbox will try to
<focus>yes</focus>
#
# 1 is the first desktop, 'all' for all desktops
<desktop>1</desktop>
#
# above, normal, below
<layer>normal</layer>
#
# Make the window iconified when it appears, or not
<iconic>no</iconic>
#
# Asks to not be shown in pagers
<skip_pager>no</skip_pager>
#
# Asks to not be shown in taskbars. window cycling actions will also skip past such windows
<skip_taskbar>no</skip_taskbar>
#
# Make the window in fullscreen mode when it appears
<fullscreen>yes</fullscreen>
#
# 'Horizontal', 'Vertical' or boolean (yes/no)
<maximized>true</maximized>
--> ?>
<!-- I'd love to have this just happen when opening lxterminal in some circumstances, but I don't know if that's possible. -->
<application name="lxterminal">
<focus>yes</focus>
<position force="yes">
<x>0</x>
<y>0</y>
</position>
</application>
<!-- Don't forget application priority. This is here so that it overrides the above lxterminal preference. -->
<application title="hidden title centered">
<focus>yes</focus>
<position force="yes">
<x>center</x>
<y>center</y>
</position>
<layer>above</layer>
<decor>no</decor>
</application>