Pular para o conteúdo principal

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>
      <action name="MoveToEdgeEast"/>
    </keybind>
    <keybind key="C-W-3">
      <action name="UnmaximizeFull"/>
      <action name="Maximize">
        <direction>horizontal</direction>
      </action>
      <action name="MoveResizeTo">
        <height>50%</height>
      </action>
      <action name="MoveToEdgeNorth"/>
    </keybind>
    <keybind key="C-W-4">
      <action name="UnmaximizeFull"/>
      <action name="Maximize">
        <direction>horizontal</direction>
      </action>
      <action name="MoveResizeTo">
        <height>50%</height>
      </action> </keybind>
        </keybind>
    <keybind key="C-W-w" chroot="true">
      <keybind key="Left">
        <action name="UnmaximizeFull"/>
        <action name="MaximizeVert"/>
        <action name="MoveResizeTo">
          <width>50%</width>
        </action>
        <action name="MoveToEdgeWest"/>
      </keybind>
      <keybind key="Right">
        <action name="UnmaximizeFull"/>
        <action name="MaximizeVert"/>
        <action name="MoveResizeTo">
          <width>50%</width>
        </action>
        <action name="MoveToEdgeEast"/>
      </keybind>
      <keybind key="Down">
        <action name="UnmaximizeFull"/>
        <action name="Maximize">
          <direction>horizontal</direction>
        </action>
        <action name="MoveResizeTo">
          <height>50%</height>
        </action>
        <action name="MoveToEdgeSouth"/>
      </keybind>
      <keybind key="Up">
        <action name="UnmaximizeFull"/>
        <action name="Maximize">
          <direction>horizontal</direction>
        </action>
        <action name="MoveResizeTo">
          <height>50%</height>
        </action>
        <action name="MoveToEdgeNorth"/>
      </keybind>
      <keybind key="Escape">
        <action name="BreakChroot"/>
      </keybind>
    </keybind>

  
An openbox --reconfigure in the terminal will make it available in your openbox, after inserting the code into rc.xml file. The code enables two methods of doing aero-snapping: The first one allows you to make aero-snapping  pressing ctrl+windows+1 to 4. The second one, pressing in the same time ctrl+windows+w you will be sent to a chroot and you can move windows with keyboard directionals (up, down, right and left), and escaping with "esc". Thanks for the idea, folks from Crunchbang forum!! I slightly change it, but it works like a charm! Hope it'll be useful for everyone! .

Comentários

Postagens mais visitadas deste blog

Creating an extra custom menu in openbox WM

    Hi, folks. It's been a while, isn't it?     Well, I know nowadays people are telling X11 will be dead soon and the future is Wayland, but for the ones like me, dinosaurs that can't live without things like fluxbox or openbox, how the future will be?      O penbox is a very mature WM, offering some tricks we don't see much around here.     Here's  one much helpful: Making custom menus.       I've already shown the path to do the same in fluxbox in the past.       Now I show you all to do that in openbox.     First, locate in rc.xml the block of code that refers the menu. It's something like this: < menu>     <hideDelay>250</hideDelay>     <middle>no</middle>     <submenuShowDelay>100</submenuShowDelay>     <submenuHideDelay>400</submenuHideDelay>     <applicationIco...

Window list in Fluxbox

One of the best features on openbox comes "hidden" in Fluxbox. To use it, put a line in your "keys" (/home/"user"/.fluxbox/keys) file like that: Mod4 Escape    :ClientMenu In my case, when I click windows button+escape I get: That's it!

Openbox: trays e bmpanel

Todos sabem que sou amante dos gerentes de janelas minimalistas, que ocupam pouco espaço na memória e que uso muito o openbox. Na verdade, existe uma funcionalidade que o openbox não provê nativamente e em virtude dessa deficiência, é necessário usar um programa externo. Tal funcionalidade é o que se chama de systray, que é geralmente uma pequena barra onde ficam alocados os ícones de certas aplicações, como o parcellite, o beep-media-player-x, o quodlibet (geralmente players têm essa característica). Então, você pode interagir com o programa mesmo ali de seu ícone na systray, no caso de players, com comandos como "play", "pause", stop, etc. Contudo, como disse anteriormente, o fato é que no openbox, essa funcionalidade não é provida, de modo que eu tive problemas com aplicações como o player beep-media-player-x (minha aplicação favorita para ouvir rádio na web), porque em sua configuração padrão, quando você clica no "x" da janela, a aplicação não é morta...