l3g1tsp

Openbox window snapping

Jun 1st, 2016
4,402
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2.  Add this to your openbox rc.xml
  3.  inside <keyboard></keyboard>
  4.  
  5.  +-------+-------+   +---------------+
  6.  | ALT+q | ALT+e |   |     ALT+w     |
  7.  +-------+-------+   +---------------+
  8.  | ALT+z | ALT+c |   |     ALT+x     |
  9.  +-------+-------+   +---------------+
  10.  
  11.  +-------+-------+   +---------------+
  12.  |       |       |   |               |
  13.  | ALT+a | ALT+d |   |     ALT+s     |
  14.  |       |       |   |               |
  15.  +-------+-------+   +---------------+
  16.                         SHIFT+ALT+s
  17.                         to minimize
  18.  
  19.  I've configures these bindings to my
  20.  personal preference, changing them is
  21.  not very hard. Just change
  22.  <keybind key="m-y-k-e-y-s">
  23.  to
  24.  <keybind key="y-o-u-r-k-e-y-s">
  25. -->
  26.  
  27. <keybind key="A-a">
  28.   <action name="UnmaximizeFull"/>
  29.   <action name="MoveResizeTo">
  30.     <width>50%</width>
  31.     <height>100%</height>
  32.     <x>0%</x>
  33.     <y>0%</y>
  34.   </action>
  35. </keybind>
  36. <keybind key="A-d">
  37.   <action name="UnmaximizeFull"/>
  38.   <action name="MoveResizeTo">
  39.     <width>50%</width>
  40.     <height>100%</height>
  41.     <x>50%</x>
  42.     <y>0%</y>
  43.   </action>
  44. </keybind>
  45. <keybind key="A-x">
  46.   <action name="UnmaximizeFull"/>
  47.   <action name="MoveResizeTo">
  48.     <width>100%</width>
  49.     <height>50%</height>
  50.     <x>0%</x>
  51.     <y>50%</y>
  52.   </action>
  53. </keybind>
  54. <keybind key="A-w">
  55.   <action name="UnmaximizeFull"/>
  56.   <action name="MoveResizeTo">
  57.     <width>100%</width>
  58.     <height>50%</height>
  59.     <x>0%</x>
  60.     <y>0%</y>
  61.   </action>
  62. </keybind>
  63. <keybind key="A-q">
  64.   <action name="UnmaximizeFull"/>
  65.   <action name="MoveResizeTo">
  66.     <width>50%</width>
  67.     <height>50%</height>
  68.     <x>0%</x>
  69.     <y>0%</y>
  70.   </action>
  71. </keybind>
  72. <keybind key="A-e">
  73.   <action name="UnmaximizeFull"/>
  74.   <action name="MoveResizeTo">
  75.     <width>50%</width>
  76.     <height>50%</height>
  77.     <x>50%</x>
  78.     <y>0%</y>
  79.   </action>
  80. </keybind>
  81. <keybind key="A-z">
  82.   <action name="UnmaximizeFull"/>
  83.   <action name="MoveResizeTo">
  84.     <width>50%</width>
  85.     <height>50%</height>
  86.     <x>0%</x>
  87.     <y>50%</y>
  88.   </action>
  89. </keybind>
  90. <keybind key="A-c">
  91.   <action name="UnmaximizeFull"/>
  92.   <action name="MoveResizeTo">
  93.     <width>50%</width>
  94.     <height>50%</height>
  95.     <x>50%</x>
  96.     <y>50%</y>
  97.   </action>
  98. </keybind>
  99. <keybind key="A-s">
  100.   <action name="Maximize"/>
  101. </keybind>
  102. <keybind key="A-S-s">
  103.   <action name="Iconify"/>
  104. </keybind>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×