You are not logged in.

#1 2014-06-20 07:15:15

m0g
Member
Registered: 2011-04-04
Posts: 7

2bwm gap like in CWM

Hello,

when configuring 2bwm, is there a way to have gap/margin (like in cwm) in order to not hide the panel when maximizing the window?

Thanks

Offline

#2 2014-07-14 16:43:14

DisposableHero
Member
Registered: 2013-11-21
Posts: 19

Re: 2bwm gap like in CWM

I don't know if you figured it out yet but you can configure a margin for a panel.

///---Offsets---///
/*0)offsetx          1)offsety
 *2)maxwidth         3)maxheight */
static const uint8_t offsets[] = {0,18,0,18};

This would create a margin of 18pixels at the top of your screen.

With this configured there's two different ways of maximizing your windows.

Mod+x will override your margin.
Mod+shift+x will honor your margin.

I believe those are the default keybindings.

Offline

#3 2014-07-15 08:45:41

m0g
Member
Registered: 2011-04-04
Posts: 7

Re: 2bwm gap like in CWM

Hey, thanks for the answer, that did the trick.

However I think the default config is:

Mod+X maximize while honoring the margin
Mod+Shift+X maximize while overriding the margin

https://github.com/venam/2bwm/blob/master/config.h#L118

Offline

#4 2014-07-15 12:56:42

DisposableHero
Member
Registered: 2013-11-21
Posts: 19

Re: 2bwm gap like in CWM

I don't know if this is a mistake by the author or if it's just phrashed wrong but Mod+x for me maximizes the window to the entire screen removing the border and covering the statusbar whilst Mod+shift+x removes the border and maximizes without covering the statusbar.

// Full screen window without borders
{  MOD ,              XK_x,         maximize,          {.i=0}},
//Full screen window without borders overiding offsets
{  MOD |SHIFT ,       XK_x,          maximize,          {.i=1}},

Offline

Board footer

Powered by FluxBB