dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 8a7b27a56e4b1877a4f6c5469e3eba0c04704cfe
parent 2d1ca55f50a67a8151f9c4eb03a9eb2fdb365597
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri,  2 Aug 2019 23:01:56 +0100

increase offsets. maxwithborders func and keybinding

Diffstat:
M2bwm/config.h | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/2bwm/config.h b/2bwm/config.h @@ -16,7 +16,7 @@ static const float resize_keep_aspect_ratio= 1.03; ///---Offsets---/// /*0)offsetx 1)offsety *2)maxwidth 3)maxheight */ -static const uint8_t offsets[] = {0,0,0,0}; +static const uint8_t offsets[] = {20,20,40,40}; ///---Colors---/// /*0)focuscol 1)unfocuscol *2)fixedcol 3)unkilcol @@ -54,6 +54,13 @@ static void halfandcentered(const Arg *arg) Arg arg3 = {.i=TWOBWM_TELEPORT_CENTER}; teleport(&arg3); } +static void maxwithborders(const Arg *arg) +{ + Arg arg2 = {.i=TWOBWM_MAXHALF_VERTICAL_LEFT}; + maxhalf(&arg2); + Arg arg3 = {.i=TWOBWM_MAXIMIZE_HORIZONTALLY}; + maxvert_hor(&arg3); +} ///---Shortcuts---/// /* Check /usr/include/X11/keysymdef.h for the list of all keys * 0x000000 is for no modkey @@ -129,7 +136,9 @@ static key keys[] = { { MOD , XK_Home, resizestep_aspect, {.i=TWOBWM_RESIZE_KEEP_ASPECT_GROW}}, { MOD , XK_End, resizestep_aspect, {.i=TWOBWM_RESIZE_KEEP_ASPECT_SHRINK}}, // Maximize (ignore offset and no EWMH atom) - { MOD , XK_x, maximize, {}}, + //{ MOD , XK_x, maximize, {}}, + // Maximize with borders + { MOD , XK_x, maxwithborders, {.i=0}}, // Full screen (disregarding offsets and adding EWMH atom) { MOD |SHIFT , XK_x, fullscreen, {}}, // Maximize vertically