You are not logged in.

#1 2015-06-27 09:13:03

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,906

Snapping windows under Openbox

Something some of you might be interested in ....

https://abchk1234.wordpress.com/


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artixlinux.org/migrate.php

Offline

#2 2015-06-27 15:12:52

moravec
Member
From: near volcano, pacific NW, USA
Registered: 2010-10-07
Posts: 114
Website

Re: Snapping windows under Openbox

I like it.  I wonder if it is something that should be incorperated in the next archbang offering.


ex Distro Junkie, Archbang addict

Offline

#3 2015-06-27 17:18:10

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,906

Re: Snapping windows under Openbox

We have this in our rc.xml

keybind key="W-a">
<action name="ToggleMaximizeFull"/>
</keybind>
<keybind key="W-Right">
<action name="MoveToEdgeEast"/>
</keybind>
<keybind key="W-Up">
<action name="MoveToEdgeNorth"/>
</keybind>
<keybind key="W-Left">
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Down">
<action name="MoveToEdgeSouth"/>
</keybind>
<keybind key="W-h">
<action name="ToggleMaximizeHorz"/>
</keybind>
<keybind key="A-W-Up">
<action name="GrowToEdgeNorth"/>
</keybind>
<keybind key="A-W-Right">
<action name="GrowToEdgeEast"/>
</keybind>
<keybind key="A-W-Down">
<action name="GrowToEdgeSouth"/>
</keybind>
<keybind key="A-W-Left">
<action name="GrowToEdgeWest"/>
</keybind>

Missed one

<keybind key="W-v">
<action name="ToggleMaximizeVert"/>
</keybind>

Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artixlinux.org/migrate.php

Offline

#4 2015-06-28 01:00:10

moravec
Member
From: near volcano, pacific NW, USA
Registered: 2010-10-07
Posts: 114
Website

Re: Snapping windows under Openbox

Sure but AAditya's commands are just a way to make it fast, easy and intuitive to tile.


ex Distro Junkie, Archbang addict

Offline

#5 2015-06-28 11:32:23

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,906

Re: Snapping windows under Openbox

Let me add them to next release wink


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artixlinux.org/migrate.php

Offline

#6 2015-06-28 13:10:47

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,630
Website

Re: Snapping windows under Openbox

Nice find!!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#7 2015-06-28 15:15:54

moravec
Member
From: near volcano, pacific NW, USA
Registered: 2010-10-07
Posts: 114
Website

Re: Snapping windows under Openbox

I changed the key combination in rc.xml for these commands from C-A to C-S since C-A is already used for desktop switching commands.


ex Distro Junkie, Archbang addict

Offline

#8 2015-06-28 23:14:54

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,906

Re: Snapping windows under Openbox

I removed desktop switching so I could test key binds, certainly using Shift might be the way to go....


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artixlinux.org/migrate.php

Offline

#9 2015-06-30 13:37:48

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,906

Re: Snapping windows under Openbox

This might be even better,

http://www.jasoncavett.com/blog/a-bette … h-openbox/

It pushes window to left or right of desktop and fills vertical by half screen....

<!-- Window Tiling: Emulates Windows 7 Snap feature -->
<keybind key="W-Left">
  <action name="UnmaximizeFull"/>
  <action name="MaximizeVert"/>
  <action name="MoveResizeTo">
    <width>50%</width>
  </action>
  <action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Right">
  <action name="UnmaximizeFull"/>
  <action name="MaximizeVert"/>
  <action name="MoveResizeTo">
    <width>50%</width>
  </action>
  <action name="MoveToEdgeEast"/>
</keybind>

Binds could be changed too suit


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org Artix information https://artixlinux.org/migrate.php

Offline

Board footer

Powered by FluxBB