Author Topic: Some Really Neat Code for lxde-rc.xml  (Read 682 times)

Offline arkanabar

  • Full Member
  • ***
  • Posts: 198
  • Ain't I a Stinker?
    • Arkanabar's Eclectic Rants
Some Really Neat Code for lxde-rc.xml
« on: March 18, 2012, 07:03:00 AM »
I ran across some code Philip Newborough uses for tiling behavior in openbox.  I said to myself, "I want that!", fired up lxde on my desktop (which currently runs PCLOS alone -- the first time I've intentionally had only a single OS on my desktop since I started using Linux), added it in to my lxde-rc.xml file, and got to work.  I am very pleased with the code.

Here it is:
Code: [Select]
<keybind key="W-Right">
     <action name="GrowToEdgeEast"/>
   </keybind>
   <keybind key="W-Left">
     <action name="GrowToEdgeWest"/>
   </keybind>
   <keybind key="W-Down">
     <action name="GrowToEdgeSouth"/>
   </keybind>
   <keybind key="W-Up">
     <action name="GrowToEdgeNorth"/>
   </keybind>
These bindings will grow the current window to the next edge of any open window on the desktop in the specified direction, to the edge of the desktop.  If the edge of the window is at the edge of the desktop, it will shrink the opposite edge of the current window to the next edge of any open window it finds.