Added function to toggle smartgaps and bound it to Super+Shift+apostrophe.
This commit is contained in:
parent
ba7a75abf5
commit
6b396d0d84
2 changed files with 9 additions and 0 deletions
1
config.h
1
config.h
|
@ -201,6 +201,7 @@ static Key keys[] = {
|
||||||
{ MODKEY|ShiftMask, XK_semicolon, shifttag, { .i = 1 } },
|
{ MODKEY|ShiftMask, XK_semicolon, shifttag, { .i = 1 } },
|
||||||
{ MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
|
{ MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
|
||||||
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
|
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
|
||||||
|
{ MODKEY|ShiftMask, XK_apostrophe, togglesmartgaps, {0} },
|
||||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
|
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ static void incrgaps(const Arg *arg);
|
||||||
/* static void incrihgaps(const Arg *arg); */
|
/* static void incrihgaps(const Arg *arg); */
|
||||||
/* static void incrivgaps(const Arg *arg); */
|
/* static void incrivgaps(const Arg *arg); */
|
||||||
static void togglegaps(const Arg *arg);
|
static void togglegaps(const Arg *arg);
|
||||||
|
static void togglesmartgaps(const Arg *arg);
|
||||||
|
|
||||||
/* Layouts */
|
/* Layouts */
|
||||||
static void bstack(Monitor *m);
|
static void bstack(Monitor *m);
|
||||||
|
@ -48,6 +49,13 @@ togglegaps(const Arg *arg)
|
||||||
arrange(NULL);
|
arrange(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
togglesmartgaps(const Arg *arg)
|
||||||
|
{
|
||||||
|
smartgaps = !smartgaps;
|
||||||
|
arrange(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
defaultgaps(const Arg *arg)
|
defaultgaps(const Arg *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue