I am trying to edit the lxde-rc.xml
file (in ~/.config/openbox
) so I can implement Window snapping like in Microsoft Windows. When a window is dragged to the right edge of the screen, it maximizes to fill the right half of the screen. I don't want to use a tiling wm, but edit the configuration for openbox. I have found code that will do this with keyboard shortcuts:
<!-- Fill left half of desktop -->
<keybind key="C-W-Left">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>99%</height>
<width>50%</width>
</action>
</keybind>
<!-- Fill right half of desktop -->
<keybind key="C-W-Right">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<height>99%</height>
<width>50%</width>
</action>
</keybind>
My current (and also the default) configuration moves a window to the next desktop when it is dragged to the screen edge, so there must already be some kind of binding in the configuration file. However, The only actions in the configuration file that switch desktops are called by Keyboard shortcuts and scrolling on the desktop.
I have two questions:
What would a mouse binding look like that toggles an action when a window is dragged to the edge of the screen, and:
Why is the current behaviour of that action not referenced in lxde-rc.xml
?
Thanks in advance!