Pular para o conteúdo principal

Postagens

Mostrando postagens de abril, 2013

Shutting down or restarting using openbox (with chroot)

First, your user must be allowed to shut down the system. Do it editing /etc/sudoers (a glance at man should help). We don't focus the edition of sudoers here. Then, add to you rc.xml (making backup of it first, always): <keybind key="C-A-Delete" chroot="true">       <keybind key="r">         <action name="Execute">           <prompt>Reiniciar o sistema?</prompt>           <execute>reboot</execute>         </action>       </keybind>       <keybind key="x">         <action name="Execute">           <prompt>Desligar o sistema?</prompt>           <execute>poweroff</execute>         </action>       </keybind>     ...

Aero Snap in Openbox (with or without chroot)

There's quite some time I've been searching on how to do that and I finally found it. First, backup your $HOME/openbox/rc.xml. Then, insert these lines in your rc.xml in keyboard section, before < /keyboard> ,  of course:  </keybind>     <keybind key="C-W-1">       <action name="UnmaximizeFull"/>       <action name="MaximizeVert"/>       <action name="MoveResizeTo">         <width>50%</width>       </action>       <action name="MoveToEdgeWest"/>     </keybind>     <keybind key="C-W-2">       <action name="UnmaximizeFull"/>       <action name="MaximizeVert"/>       <action name="MoveResizeTo">         <width>50%</width>       </action>   ...