[hlwm] split feature-request

Thorsten Wißmann edu at thorsten-wissmann.de
Fri Dec 13 08:56:21 CET 2013


Hi Tylo,

On Thu, Dec 12, 2013 at 09:56:42AM -0800, tylo hart wrote:
> If I understand 'up' and 'left' correctly, these pieces of shell script
> should accomplish what you want:
> 
> # Split UP
> herbstclient split v 0.5
> while herbstclient shift d; do
>     herbstclient focus u
> done

it's nearly what's happening now. The only difference is, that the
implementation also moves the "layout" and other future frame properties
to the new frame and not only the windows.

But well spotted! It took me quite some time to get that your simple
script does the right thing. :)

Cheers,
Thorsten

On Thu, Dec 12, 2013 at 09:56:42AM -0800, tylo hart wrote:
> Hello,
> 
> If I understand 'up' and 'left' correctly, these pieces of shell script
> should accomplish what you want:
> 
> # Split UP
> herbstclient split v 0.5
> while herbstclient shift d; do
>     herbstclient focus u
> done
> 
> #Split LEFT
> herbstclient split h 0.5
> while herbstclient shift r; do
>     herbstclient focus l
> done
> 
> Sorry for any typos, Im in a bit of a hurry.
> 
> Cheers,
> tylo
> 
> 
> 
> On Thu, Dec 12, 2013 at 9:03 AM, Thorsten Wißmann
> <edu at thorsten-wissmann.de>wrote:
> 
> > Hi,
> >
> > On Thu, Dec 12, 2013 at 05:13:35PM +0100, Thorsten Wißmann wrote:
> > > On Wed, Dec 04, 2013 at 09:52:28PM +0100, Flexo Rodriguez wrote:
> > > > i having a feature request after i took a look on bspwm.
> > > >
> > > > in bspwm you can not just split the tree to the right and bottom but
> > split a
> > > > window to left and top. i think it would be a great improvement while
> > handling
> > > > frames in hlwm. so if it is possible without that much struggling i
> > will be even
> > > > more happy.
> > >
> > > I just tried bspwm but still I'm not sure what you try to describe. So
> > > when doing "herbstclient split vertical 0.5" an empty frame is created
> > > "below" of the focused frame. Is your request that the new empty space
> > > should appear above of the selected frame? (And analogous on the left?)
> > >
> > > If yes that should be implemented quite easily.
> >
> > I think it's very useful, so there are new split modes: top, left in
> > addition to the old ones: vertical (alias: bottom) and horizontal
> > (alias: right). The names indicate the (relative) location of the fresh
> > and empty frame which is created.
> >
> > It seems quite often, that immediately after splitting, the fresh frame
> > is focused by the user. So it might be an option to focus the fresh
> > frame automatically after the split. Opinions?
> >
> > If you're interested in trying it, I had the following in my old musca
> > config and really enjoyed it:
> >
> > herbstclient keybind Mod1-Mod4-h chain , split left   0.5 , focus left
> > herbstclient keybind Mod1-Mod4-j chain , split bottom 0.5 , focus down
> > herbstclient keybind Mod1-Mod4-k chain , split top    0.5 , focus up
> > herbstclient keybind Mod1-Mod4-l chain , split right  0.5 , focus right
> > herbstclient keybind Mod1-Mod4-r remove
> >
> > And maybe top/bottom should be renamed to up/down...
> >
> >
> > Thorsten
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131213/865f6e03/attachment.sig>


More information about the hlwm mailing list