...

Text file src/edge-infra.dev/config/pallets/sds/display/base/xserver/global-openbox-config.yaml

Documentation: edge-infra.dev/config/pallets/sds/display/base/xserver

     1apiVersion: v1
     2kind: ConfigMap
     3metadata:
     4  name: global-openbox-config
     5data:
     6  openbox.conf: |
     7    <?xml version="1.0" encoding="UTF-8"?>
     8
     9    <!-- Do not edit this field, changes will be reverted by lumper. -->
    10
    11    <!-- Copy `openbox.conf` to a ConfigMap named "xserver-config-<HOSTNAME>" (substituting the hostname of the touchpoint) and make your changes there. -->
    12
    13    <openbox_config xmlns="http://openbox.org/3.4/rc"
    14                    xmlns:xi="http://www.w3.org/2001/XInclude">
    15
    16    <resistance>
    17      <strength>10</strength>
    18      <screen_edge_strength>20</screen_edge_strength>
    19    </resistance>
    20
    21    <focus>
    22      <focusNew>yes</focusNew>
    23      <!-- always try to focus new windows when they appear. other rules do
    24          apply -->
    25      <followMouse>no</followMouse>
    26      <!-- move focus to a window when you move the mouse into it -->
    27      <focusLast>yes</focusLast>
    28      <!-- focus the last used window when changing desktops, instead of the one
    29          under the mouse pointer. when followMouse is enabled -->
    30      <underMouse>no</underMouse>
    31      <!-- move focus under the mouse, even when the mouse is not moving -->
    32      <focusDelay>200</focusDelay>
    33      <!-- when followMouse is enabled, the mouse must be inside the window for
    34          this many milliseconds (1000 = 1 sec) before moving focus to it -->
    35      <raiseOnFocus>no</raiseOnFocus>
    36      <!-- when followMouse is enabled, and a window is given focus by moving the
    37          mouse into it, also raise the window -->
    38    </focus>
    39
    40    <placement>
    41      <policy>Smart</policy>
    42      <!-- 'Smart' or 'UnderMouse' -->
    43      <center>yes</center>
    44      <!-- whether to place windows in the center of the free area found or
    45          the top left corner -->
    46      <monitor>Primary</monitor>
    47      <!-- with Smart placement on a multi-monitor system, try to place new windows
    48          on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
    49          the active window is, 'Primary' - only on the primary monitor -->
    50      <primaryMonitor>1</primaryMonitor>
    51      <!-- The monitor where Openbox should place popup dialogs such as the
    52          focus cycling popup, or the desktop switch popup.  It can be an index
    53          from 1, specifying a particular monitor.  Or it can be one of the
    54          following: 'Mouse' - where the mouse is, or
    55                      'Active' - where the active window is -->
    56    </placement>
    57
    58    <theme>
    59      <name>Clearlooks</name>
    60      <titleLayout>NLIMC</titleLayout>
    61      <!--
    62          available characters are NDSLIMC, each can occur at most once.
    63          N: window icon
    64          L: window label (AKA title).
    65          I: iconify
    66          M: maximize
    67          C: close
    68          S: shade (roll up/down)
    69          D: omnipresent (on all desktops).
    70      -->
    71      <keepBorder>yes</keepBorder>
    72      <animateIconify>yes</animateIconify>
    73      <font place="ActiveWindow">
    74        <name>sans</name>
    75        <size>8</size>
    76        <!-- font size in points -->
    77        <weight>bold</weight>
    78        <!-- 'bold' or 'normal' -->
    79        <slant>normal</slant>
    80        <!-- 'italic' or 'normal' -->
    81      </font>
    82      <font place="InactiveWindow">
    83        <name>sans</name>
    84        <size>8</size>
    85        <!-- font size in points -->
    86        <weight>bold</weight>
    87        <!-- 'bold' or 'normal' -->
    88        <slant>normal</slant>
    89        <!-- 'italic' or 'normal' -->
    90      </font>
    91      <font place="MenuHeader">
    92        <name>sans</name>
    93        <size>9</size>
    94        <!-- font size in points -->
    95        <weight>normal</weight>
    96        <!-- 'bold' or 'normal' -->
    97        <slant>normal</slant>
    98        <!-- 'italic' or 'normal' -->
    99      </font>
   100      <font place="MenuItem">
   101        <name>sans</name>
   102        <size>9</size>
   103        <!-- font size in points -->
   104        <weight>normal</weight>
   105        <!-- 'bold' or 'normal' -->
   106        <slant>normal</slant>
   107        <!-- 'italic' or 'normal' -->
   108      </font>
   109      <font place="ActiveOnScreenDisplay">
   110        <name>sans</name>
   111        <size>9</size>
   112        <!-- font size in points -->
   113        <weight>bold</weight>
   114        <!-- 'bold' or 'normal' -->
   115        <slant>normal</slant>
   116        <!-- 'italic' or 'normal' -->
   117      </font>
   118      <font place="InactiveOnScreenDisplay">
   119        <name>sans</name>
   120        <size>9</size>
   121        <!-- font size in points -->
   122        <weight>bold</weight>
   123        <!-- 'bold' or 'normal' -->
   124        <slant>normal</slant>
   125        <!-- 'italic' or 'normal' -->
   126      </font>
   127    </theme>
   128
   129    <desktops>
   130      <!-- this stuff is only used at startup, pagers allow you to change them
   131          during a session
   132
   133          these are default values to use when other ones are not already set
   134          by other applications, or saved in your session
   135
   136          use obconf if you want to change these without having to log out
   137          and back in -->
   138      <number>4</number>
   139      <firstdesk>1</firstdesk>
   140      <names>
   141        <!-- set names up here if you want to, like this:
   142        <name>desktop 1</name>
   143        <name>desktop 2</name>
   144        -->
   145      </names>
   146      <popupTime>875</popupTime>
   147      <!-- The number of milliseconds to show the popup for when switching
   148          desktops.  Set this to 0 to disable the popup. -->
   149    </desktops>
   150
   151    <resize>
   152      <drawContents>yes</drawContents>
   153      <popupShow>Nonpixel</popupShow>
   154      <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
   155      <popupPosition>Center</popupPosition>
   156      <!-- 'Center', 'Top', or 'Fixed' -->
   157      <popupFixedPosition>
   158        <!-- these are used if popupPosition is set to 'Fixed' -->
   159
   160        <x>10</x>
   161        <!-- positive number for distance from left edge, negative number for
   162            distance from right edge, or 'Center' -->
   163        <y>10</y>
   164        <!-- positive number for distance from top edge, negative number for
   165            distance from bottom edge, or 'Center' -->
   166      </popupFixedPosition>
   167    </resize>
   168
   169    <!-- You can reserve a portion of your screen where windows will not cover when
   170        they are maximized, or when they are initially placed.
   171        Many programs reserve space automatically, but you can use this in other
   172        cases. -->
   173    <margins>
   174      <top>0</top>
   175      <bottom>0</bottom>
   176      <left>0</left>
   177      <right>0</right>
   178    </margins>
   179
   180    <dock>
   181      <position>TopLeft</position>
   182      <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
   183      <floatingX>0</floatingX>
   184      <floatingY>0</floatingY>
   185      <noStrut>no</noStrut>
   186      <stacking>Above</stacking>
   187      <!-- 'Above', 'Normal', or 'Below' -->
   188      <direction>Vertical</direction>
   189      <!-- 'Vertical' or 'Horizontal' -->
   190      <autoHide>no</autoHide>
   191      <hideDelay>300</hideDelay>
   192      <!-- in milliseconds (1000 = 1 second) -->
   193      <showDelay>300</showDelay>
   194      <!-- in milliseconds (1000 = 1 second) -->
   195      <moveButton>Middle</moveButton>
   196      <!-- 'Left', 'Middle', 'Right' -->
   197    </dock>
   198
   199    <keyboard>
   200    </keyboard>
   201
   202    <mouse>
   203      <dragThreshold>1</dragThreshold>
   204      <!-- number of pixels the mouse must move before a drag begins -->
   205      <doubleClickTime>500</doubleClickTime>
   206      <!-- in milliseconds (1000 = 1 second) -->
   207      <screenEdgeWarpTime>400</screenEdgeWarpTime>
   208      <!-- Time before changing desktops when the pointer touches the edge of the
   209          screen while moving a window, in milliseconds (1000 = 1 second).
   210          Set this to 0 to disable warping -->
   211      <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
   212      <!-- Set this to TRUE to move the mouse pointer across the desktop when
   213          switching due to hitting the edge of the screen -->
   214
   215      <context name="Frame">
   216        <mousebind button="A-Left" action="Press">
   217          <action name="Focus"/>
   218          <action name="Raise"/>
   219        </mousebind>
   220        <mousebind button="A-Left" action="Click">
   221          <action name="Unshade"/>
   222        </mousebind>
   223        <mousebind button="A-Left" action="Drag">
   224          <action name="Move"/>
   225        </mousebind>
   226
   227        <mousebind button="A-Right" action="Press">
   228          <action name="Focus"/>
   229          <action name="Raise"/>
   230          <action name="Unshade"/>
   231        </mousebind>
   232        <mousebind button="A-Right" action="Drag">
   233          <action name="Resize"/>
   234        </mousebind>
   235
   236        <mousebind button="A-Middle" action="Press">
   237          <action name="Lower"/>
   238          <action name="FocusToBottom"/>
   239          <action name="Unfocus"/>
   240        </mousebind>
   241
   242        <mousebind button="A-Up" action="Click">
   243          <action name="GoToDesktop"><to>previous</to></action>
   244        </mousebind>
   245        <mousebind button="A-Down" action="Click">
   246          <action name="GoToDesktop"><to>next</to></action>
   247        </mousebind>
   248        <mousebind button="C-A-Up" action="Click">
   249          <action name="GoToDesktop"><to>previous</to></action>
   250        </mousebind>
   251        <mousebind button="C-A-Down" action="Click">
   252          <action name="GoToDesktop"><to>next</to></action>
   253        </mousebind>
   254        <mousebind button="A-S-Up" action="Click">
   255          <action name="SendToDesktop"><to>previous</to></action>
   256        </mousebind>
   257        <mousebind button="A-S-Down" action="Click">
   258          <action name="SendToDesktop"><to>next</to></action>
   259        </mousebind>
   260      </context>
   261
   262      <context name="Titlebar">
   263        <mousebind button="Left" action="Drag">
   264          <action name="Move"/>
   265        </mousebind>
   266        <mousebind button="Left" action="DoubleClick">
   267          <action name="ToggleMaximize"/>
   268        </mousebind>
   269
   270        <mousebind button="Up" action="Click">
   271          <action name="if">
   272            <shaded>no</shaded>
   273            <then>
   274              <action name="Shade"/>
   275              <action name="FocusToBottom"/>
   276              <action name="Unfocus"/>
   277              <action name="Lower"/>
   278            </then>
   279          </action>
   280        </mousebind>
   281        <mousebind button="Down" action="Click">
   282          <action name="if">
   283            <shaded>yes</shaded>
   284            <then>
   285              <action name="Unshade"/>
   286              <action name="Raise"/>
   287            </then>
   288          </action>
   289        </mousebind>
   290      </context>
   291
   292      <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
   293        <mousebind button="Left" action="Press">
   294          <action name="Focus"/>
   295          <action name="Raise"/>
   296          <action name="Unshade"/>
   297        </mousebind>
   298
   299        <mousebind button="Middle" action="Press">
   300          <action name="Lower"/>
   301          <action name="FocusToBottom"/>
   302          <action name="Unfocus"/>
   303        </mousebind>
   304
   305        <mousebind button="Right" action="Press">
   306          <action name="Focus"/>
   307          <action name="Raise"/>
   308        </mousebind>
   309      </context>
   310
   311      <context name="Top">
   312        <mousebind button="Left" action="Drag">
   313          <action name="Resize"><edge>top</edge></action>
   314        </mousebind>
   315      </context>
   316
   317      <context name="Left">
   318        <mousebind button="Left" action="Drag">
   319          <action name="Resize"><edge>left</edge></action>
   320        </mousebind>
   321      </context>
   322
   323      <context name="Right">
   324        <mousebind button="Left" action="Drag">
   325          <action name="Resize"><edge>right</edge></action>
   326        </mousebind>
   327      </context>
   328
   329      <context name="Bottom">
   330        <mousebind button="Left" action="Drag">
   331          <action name="Resize"><edge>bottom</edge></action>
   332        </mousebind>
   333
   334        <mousebind button="Right" action="Press">
   335          <action name="Focus"/>
   336          <action name="Raise"/>
   337        </mousebind>
   338      </context>
   339
   340      <context name="TRCorner BRCorner TLCorner BLCorner">
   341        <mousebind button="Left" action="Press">
   342          <action name="Focus"/>
   343          <action name="Raise"/>
   344          <action name="Unshade"/>
   345        </mousebind>
   346        <mousebind button="Left" action="Drag">
   347          <action name="Resize"/>
   348        </mousebind>
   349      </context>
   350
   351      <context name="Client">
   352        <mousebind button="Left" action="Press">
   353          <action name="Focus"/>
   354          <action name="Raise"/>
   355        </mousebind>
   356        <mousebind button="Middle" action="Press">
   357          <action name="Focus"/>
   358          <action name="Raise"/>
   359        </mousebind>
   360        <mousebind button="Right" action="Press">
   361          <action name="Focus"/>
   362          <action name="Raise"/>
   363        </mousebind>
   364      </context>
   365
   366      <context name="Icon">
   367        <mousebind button="Left" action="Press">
   368          <action name="Focus"/>
   369          <action name="Raise"/>
   370          <action name="Unshade"/>
   371        </mousebind>
   372        <mousebind button="Right" action="Press">
   373          <action name="Focus"/>
   374          <action name="Raise"/>
   375        </mousebind>
   376      </context>
   377
   378      <context name="AllDesktops">
   379        <mousebind button="Left" action="Press">
   380          <action name="Focus"/>
   381          <action name="Raise"/>
   382          <action name="Unshade"/>
   383        </mousebind>
   384        <mousebind button="Left" action="Click">
   385          <action name="ToggleOmnipresent"/>
   386        </mousebind>
   387      </context>
   388
   389      <context name="Shade">
   390        <mousebind button="Left" action="Press">
   391          <action name="Focus"/>
   392          <action name="Raise"/>
   393        </mousebind>
   394        <mousebind button="Left" action="Click">
   395          <action name="ToggleShade"/>
   396        </mousebind>
   397      </context>
   398
   399      <context name="Iconify">
   400        <mousebind button="Left" action="Press">
   401          <action name="Focus"/>
   402          <action name="Raise"/>
   403        </mousebind>
   404        <mousebind button="Left" action="Click">
   405          <action name="Iconify"/>
   406        </mousebind>
   407      </context>
   408
   409      <context name="Maximize">
   410        <mousebind button="Left" action="Press">
   411          <action name="Focus"/>
   412          <action name="Raise"/>
   413          <action name="Unshade"/>
   414        </mousebind>
   415        <mousebind button="Middle" action="Press">
   416          <action name="Focus"/>
   417          <action name="Raise"/>
   418          <action name="Unshade"/>
   419        </mousebind>
   420        <mousebind button="Right" action="Press">
   421          <action name="Focus"/>
   422          <action name="Raise"/>
   423          <action name="Unshade"/>
   424        </mousebind>
   425        <mousebind button="Left" action="Click">
   426          <action name="ToggleMaximize"/>
   427        </mousebind>
   428        <mousebind button="Middle" action="Click">
   429          <action name="ToggleMaximize"><direction>vertical</direction></action>
   430        </mousebind>
   431        <mousebind button="Right" action="Click">
   432          <action name="ToggleMaximize"><direction>horizontal</direction></action>
   433        </mousebind>
   434      </context>
   435
   436      <context name="Close">
   437        <mousebind button="Left" action="Press">
   438          <action name="Focus"/>
   439          <action name="Raise"/>
   440          <action name="Unshade"/>
   441        </mousebind>
   442        <mousebind button="Left" action="Click">
   443          <action name="Close"/>
   444        </mousebind>
   445      </context>
   446
   447      <context name="Desktop">
   448        <mousebind button="Up" action="Click">
   449          <action name="GoToDesktop"><to>previous</to></action>
   450        </mousebind>
   451        <mousebind button="Down" action="Click">
   452          <action name="GoToDesktop"><to>next</to></action>
   453        </mousebind>
   454
   455        <mousebind button="A-Up" action="Click">
   456          <action name="GoToDesktop"><to>previous</to></action>
   457        </mousebind>
   458        <mousebind button="A-Down" action="Click">
   459          <action name="GoToDesktop"><to>next</to></action>
   460        </mousebind>
   461        <mousebind button="C-A-Up" action="Click">
   462          <action name="GoToDesktop"><to>previous</to></action>
   463        </mousebind>
   464        <mousebind button="C-A-Down" action="Click">
   465          <action name="GoToDesktop"><to>next</to></action>
   466        </mousebind>
   467
   468        <mousebind button="Left" action="Press">
   469          <action name="Focus"/>
   470          <action name="Raise"/>
   471        </mousebind>
   472        <mousebind button="Right" action="Press">
   473          <action name="Focus"/>
   474          <action name="Raise"/>
   475        </mousebind>
   476      </context>
   477
   478      <context name="Root">
   479        <!-- Menus -->
   480        <mousebind button="Middle" action="Press">
   481        </mousebind>
   482        <mousebind button="Right" action="Press">
   483        </mousebind>
   484      </context>
   485
   486      <context name="MoveResize">
   487        <mousebind button="Up" action="Click">
   488          <action name="GoToDesktop"><to>previous</to></action>
   489        </mousebind>
   490        <mousebind button="Down" action="Click">
   491          <action name="GoToDesktop"><to>next</to></action>
   492        </mousebind>
   493        <mousebind button="A-Up" action="Click">
   494          <action name="GoToDesktop"><to>previous</to></action>
   495        </mousebind>
   496        <mousebind button="A-Down" action="Click">
   497          <action name="GoToDesktop"><to>next</to></action>
   498        </mousebind>
   499      </context>
   500    </mouse>
   501
   502    <menu>
   503    </menu>
   504
   505    <applications>
   506    </applications>
   507
   508    </openbox_config>

View as plain text