Add swapmon patch, remove dwm, change font to monospace 8
This commit is contained in:
parent
a99b87eb30
commit
68df416f09
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
*.o
|
*.o
|
||||||
|
dwm
|
||||||
|
|
5
config.h
5
config.h
|
@ -25,8 +25,7 @@ static const int lcaselbl = 0; /* 1 means make tag label lowerc
|
||||||
static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
||||||
static int tiledindicatortype = INDICATOR_NONE;
|
static int tiledindicatortype = INDICATOR_NONE;
|
||||||
static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
||||||
static const char font[] = "monospace 10";
|
static const char font[] = "monospace 8";
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
|
||||||
|
|
||||||
static char c000000[] = "#000000"; // placeholder value
|
static char c000000[] = "#000000"; // placeholder value
|
||||||
|
|
||||||
|
@ -346,6 +345,8 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||||
|
{ MODKEY|Mod1Mask|ControlMask, XK_comma, tagswapmon, {.i = +1 } },
|
||||||
|
{ MODKEY|Mod1Mask|ControlMask, XK_period, tagswapmon, {.i = -1 } },
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "vanitygaps.c"
|
#include "vanitygaps.c"
|
||||||
#include "xrdb.c"
|
#include "xrdb.c"
|
||||||
#include "dragmfact.c"
|
#include "dragmfact.c"
|
||||||
|
#include "swap.c"
|
||||||
/* Layouts */
|
/* Layouts */
|
||||||
#include "layout_facts.c"
|
#include "layout_facts.c"
|
||||||
#include "layout_flextile-deluxe.c"
|
#include "layout_flextile-deluxe.c"
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "swallow.h"
|
#include "swallow.h"
|
||||||
#include "vanitygaps.h"
|
#include "vanitygaps.h"
|
||||||
#include "xrdb.h"
|
#include "xrdb.h"
|
||||||
|
#include "swap.h"
|
||||||
/* Layouts */
|
/* Layouts */
|
||||||
#include "layout_flextile-deluxe.h"
|
#include "layout_flextile-deluxe.h"
|
||||||
#include "layout_monocle.h"
|
#include "layout_monocle.h"
|
||||||
|
|
61
libs/swap.c
Normal file
61
libs/swap.c
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
void
|
||||||
|
tagswapmon(const Arg *arg)
|
||||||
|
{
|
||||||
|
Monitor *m;
|
||||||
|
Client *c, *sc = NULL, *mc = NULL, *next;
|
||||||
|
|
||||||
|
if (!mons->next)
|
||||||
|
return;
|
||||||
|
|
||||||
|
m = dirtomon(arg->i);
|
||||||
|
|
||||||
|
for (c = selmon->clients; c; c = next) {
|
||||||
|
next = c->next;
|
||||||
|
if (!ISVISIBLE(c))
|
||||||
|
continue;
|
||||||
|
unfocus(c, 1, NULL);
|
||||||
|
detach(c);
|
||||||
|
detachstack(c);
|
||||||
|
c->next = sc;
|
||||||
|
sc = c;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (c = m->clients; c; c = next) {
|
||||||
|
next = c->next;
|
||||||
|
if (!ISVISIBLE(c))
|
||||||
|
continue;
|
||||||
|
unfocus(c, 1, NULL);
|
||||||
|
detach(c);
|
||||||
|
detachstack(c);
|
||||||
|
c->next = mc;
|
||||||
|
mc = c;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (c = sc; c; c = next) {
|
||||||
|
next = c->next;
|
||||||
|
c->mon = m;
|
||||||
|
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
|
||||||
|
attach(c);
|
||||||
|
attachstack(c);
|
||||||
|
if (c->isfullscreen) {
|
||||||
|
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
|
||||||
|
XRaiseWindow(dpy, c->win);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (c = mc; c; c = next) {
|
||||||
|
next = c->next;
|
||||||
|
c->mon = selmon;
|
||||||
|
c->tags = selmon->tagset[selmon->seltags]; /* assign tags of target monitor */
|
||||||
|
attach(c);
|
||||||
|
attachstack(c);
|
||||||
|
if (c->isfullscreen) {
|
||||||
|
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
|
||||||
|
XRaiseWindow(dpy, c->win);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
arrange(NULL);
|
||||||
|
focus(NULL);
|
||||||
|
}
|
||||||
|
|
1
libs/swap.h
Normal file
1
libs/swap.h
Normal file
|
@ -0,0 +1 @@
|
||||||
|
static void tagswapmon(const Arg *arg);
|
Loading…
Reference in a new issue