diff options
| author | stkhan <personal@slickd.xyz> | 2022-04-21 17:15:27 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-04-21 17:15:27 -0500 |
| commit | 6d5f8c137608df2e459c9865efa19c72856ed6e8 (patch) | |
| tree | bde7ebb7e20ac737d10c25b6503228395645a8db /dwm-6.3/vanitygaps.c | |
| parent | df966cab682c913e8b62b460c9ef900e1046863f (diff) | |
added stuff:
Diffstat (limited to 'dwm-6.3/vanitygaps.c')
| -rw-r--r-- | dwm-6.3/vanitygaps.c | 106 |
1 files changed, 1 insertions, 105 deletions
diff --git a/dwm-6.3/vanitygaps.c b/dwm-6.3/vanitygaps.c index 3f31593..d81f8c6 100644 --- a/dwm-6.3/vanitygaps.c +++ b/dwm-6.3/vanitygaps.c @@ -1,13 +1,3 @@ -/* Key binding functions */ -static void defaultgaps(const Arg *arg); -static void incrgaps(const Arg *arg); -static void incrigaps(const Arg *arg); -static void incrogaps(const Arg *arg); -static void incrohgaps(const Arg *arg); -static void incrovgaps(const Arg *arg); -static void incrihgaps(const Arg *arg); -static void incrivgaps(const Arg *arg); -static void togglegaps(const Arg *arg); /* Layouts (delete the ones you do not need) */ static void bstack(Monitor *m); static void bstackhoriz(Monitor *m); @@ -46,100 +36,6 @@ setgaps(int oh, int ov, int ih, int iv) } void -togglegaps(const Arg *arg) -{ - #if PERTAG_PATCH - selmon->pertag->enablegaps[selmon->pertag->curtag] = !selmon->pertag->enablegaps[selmon->pertag->curtag]; - #else - enablegaps = !enablegaps; - #endif // PERTAG_PATCH - arrange(NULL); -} - -void -defaultgaps(const Arg *arg) -{ - setgaps(gappoh, gappov, gappih, gappiv); -} - -void -incrgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh + arg->i, - selmon->gappov + arg->i, - selmon->gappih + arg->i, - selmon->gappiv + arg->i - ); -} - -void -incrigaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih + arg->i, - selmon->gappiv + arg->i - ); -} - -void -incrogaps(const Arg *arg) -{ - setgaps( - selmon->gappoh + arg->i, - selmon->gappov + arg->i, - selmon->gappih, - selmon->gappiv - ); -} - -void -incrohgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh + arg->i, - selmon->gappov, - selmon->gappih, - selmon->gappiv - ); -} - -void -incrovgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov + arg->i, - selmon->gappih, - selmon->gappiv - ); -} - -void -incrihgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih + arg->i, - selmon->gappiv - ); -} - -void -incrivgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih, - selmon->gappiv + arg->i - ); -} - -void getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc) { unsigned int n, oe, ie; @@ -806,4 +702,4 @@ tile(Monitor *m) resize(c, sx, sy, sw - (2*c->bw), (sh / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), 0); sy += HEIGHT(c) + ih; } -}
\ No newline at end of file +} |