Atalhos para posicionar janelas no Lxde e Openbox

Ao trabalhar com desenvolvimento, uma vez que utilizamos muitas janelas e estamos o tempo todo digitando, é conveniente ter mapeamentos de teclado que permitam mais do que simplesmente maximizar ou minimizar. Utilizo o Lubuntu, baseado no Openbox, e estou publicando aqui as alterações que incluí no meu arquivo lubuntu-rc.xml, que dependendo do seu sistema pode ter o nome de lxde-rc.xml ou openbox-rc.xml.

 O código abaixo deve ser colocado logo após a tag <keyboard>:

<!-- Custom keybindings **************************************
	 Actions reference: http://openbox.org/wiki/Help:Actions
	 
	 Super+A : decorate on/off
	 SUper+(1|2) : Move to monitor 1 or 2
	 Super+(Left|Right|Up|Down) : Dock
	 Super+(Insert,Home,Delete,End) : Quadrant
	 Super+0 : Center
	 Super+PageUp : Maximize
	 Super+PageDown: Minimize
	 
	 Super+Tab: List windows (as middle-click desktop)
 
 -->
<!-- Super+A = Toggle decoration -->
<keybind key="W-a">
	<action name="ToggleDecorations"/>
</keybind>
<!-- Super+1 = Move to monitor 1 -->
<keybind key="W-1">
	<action name="MoveResizeTo">
	<monitor>1</monitor>
	</action>
</keybind>
<!-- Super+1 = Move to monitor 2 -->
<keybind key="W-2">
	<action name="MoveResizeTo">
		<monitor>2</monitor>
	</action>
</keybind>
<!-- Super+Left = Dock undecorated left -->
<keybind key="W-Left">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>0</x>
		<y>0</y>
		<height>100%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+Right = Dock undecorated right -->  
<keybind key="W-Right">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>50%</x>
		<y>0</y>
		<height>100%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+Up = Dock undecorated up -->  
<keybind key="W-Up">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>0</x>
		<y>0</y>
		<height>50%</height>
		<width>100%</width>
	</action>
</keybind>
<!-- Super+Down = Dock undecorated down -->  
<keybind key="W-Down">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>0</x>
		<y>50%</y>
		<height>50%</height>
		<width>100%</width>
	</action>
</keybind>
<!-- Super+Insert = Dock undecorated Quadrant 1 -->
<keybind key="W-Insert">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>0</x>
		<y>0</y>
		<height>50%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+Home = Dock undecorated Quadrant 2 -->
<keybind key="W-Home">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>50%</x>
		<y>0</y>
		<height>50%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+Delete = Dock undecorated Quadrant 3 -->
<keybind key="W-Delete">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>0</x>
		<y>50%</y>
		<height>50%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+End = Dock undecorated Quadrant 4 -->
<keybind key="W-End">
	<action name="Unmaximize"/>
	<action name="Undecorate"/>
	<action name="MoveResizeTo">
		<x>50%</x>
		<y>50%</y>
		<height>50%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+0 = Restore to center, half-sized -->
<keybind key="W-0">
	<action name="Unmaximize"/>
	<action name="Decorate"/>
	<action name="MoveResizeTo">
		<x>center</x>
		<y>center</y>
		<height>50%</height>
		<width>50%</width>
	</action>
</keybind>
<!-- Super+PageUp = Maximize, decorated -->
<keybind key="W-Prior">
	<action name="Decorate"/>
	<action name="Maximize"/>
</keybind>
<!-- Super+PageDown = Minimize -->
<keybind key="W-Next">
	<action name="Decorate"/>
	<action name="Iconify"/>
</keybind>
<!-- Super+Tab = List Windows (same as middle-click desktop) -->
<keybind key="W-Tab">
  <action name="ShowMenu">
	<menu>client-list-combined-menu</menu>
  </action>
</keybind>
<!-- /Custom keybindings ************************************** -->

Se não encontrou nenhuma tecla chamada Super, não se preocupe, no Linux este é o nome dado à tecla Windows.

Uma observação importante a respeito do atalho Super+A (decorate/undecorate): A barra superior das janelas torna-se obsoleta, considerando o uso destes atalhos:

  1. Super+PgUp: Maximizar
  2. Super+PgDown: Minimizar
  3. Alt+F4: fechar
  4. Alt+Space: menu de contexto (padrão, inclusive é o mesmo atalho do Windows)
  5. Alt + Arrastar com o botão esquerdo do mouse: Mover janela
  6. Alt + Arrastar com o botão direito do mouse: Redimensionar janela

Com isso, aproveite para poupar seus braços, aumentar a produtividade e ganhar mais espaço para rabalhar!