commit b84db647811089808a986db1f8f6671d94d5fb6a
parent c633e7986c8f14d42b8654e23376a00cf4f6b181
Author: Hayden Hamilton <haydenh@sdf.org>
Date: Tue, 18 Aug 2020 18:48:33 +0100
stuffs
Diffstat:
M | config.h | | | 3 | +-- |
M | dwm.c | | | 42 | +++--------------------------------------- |
2 files changed, 4 insertions(+), 41 deletions(-)
diff --git a/config.h b/config.h
@@ -21,7 +21,7 @@ static const char *colors[][3] = {
};
/* tagging */
-static const char *tags[] = { "[1]", "[2]", "[3]", "[4]", "[5]", "[6]", "[7]", "[8]", "[9]" };
+static const char *tags[] = { "I", "II", "III", "IV", "V", "VI", "VI", "VII", "IX" };
static const Rule rules[] = {
{ "Gimp", NULL, NULL, 1 << 7, 0, 0 },
@@ -41,7 +41,6 @@ static const Layout layouts[] = {
{ "[#=-]", dwindle },
{ "[SMS]", centeredmaster },
{ "[\\M/]", centeredfloatingmaster },
- { "[╦]", portrait },
};
/* key definitions */
diff --git a/dwm.c b/dwm.c
@@ -73,8 +73,6 @@ enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
-enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
- ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
typedef union {
int i;
@@ -219,7 +217,6 @@ static void spawn(const Arg *arg);
static void tag(const Arg *arg);
static void tagmon(const Arg *arg);
static void tile(Monitor *);
-static void portrait(Monitor *);
//static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void togglefullscr(const Arg *arg);
@@ -798,8 +795,8 @@ drawbar(Monitor *m)
/* draw status first so it can be overdrawn by tags later */
if (m == selmon) { /* status is only drawn on selected monitor */
+ drw_setscheme(drw, scheme[SchemeSel]);
sw = m->ww - drawstatusbar(m, bh, stext);
- drw_setscheme(drw, scheme[SchemeNorm]);
}
for (c = m->clients; c; c = c->next) {
@@ -823,15 +820,8 @@ drawbar(Monitor *m)
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
if ((w = m->ww - sw - x) > bh) {
- if (m->sel) {
- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
- drw_text(drw, x, 0, w - 2*sidepad, bh, lrpad / 2, m->sel->name, 0);
- if (m->sel->isfloating)
- drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
- } else {
- drw_setscheme(drw, scheme[SchemeNorm]);
- drw_rect(drw, x, 0, w - 2*sidepad, bh, 1, 1);
- }
+ drw_setscheme(drw, scheme[SchemeNorm]);
+ drw_rect(drw, x, 0, w - 2*sidepad, bh, 1, 1);
}
drw_map(drw, m->barwin, 0, 0, m->ww, bh);
}
@@ -1682,32 +1672,6 @@ tile(Monitor *m)
}
void
-portrait(Monitor *m)
-{
- unsigned int i, n, h, mw, my, ty;
- Client *c;
-
- for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
- if (n == 0)
- return;
-
- if (n > m->nmaster)
- mw = m->nmaster ? m->wh * m->mfact : 0;
- else
- mw = m->wh - m->gappx;
- for (i = 0, my = ty = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if (i < m->nmaster) {
- h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx;
- resize(c, m->wx + m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0);
- my += HEIGHT(c) + m->gappx;
- } else {
- h = (m->wh - ty) / (n - i) - m->gappx;
- resize(c, m->wx + mw + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - (2*m->gappx), h - (2*c->bw), 0);
- ty += HEIGHT(c) + m->gappx;
- }
-}
-
-void
togglefloating(const Arg *arg)
{
if (!selmon->sel)