Change Active tag indicator
This commit is contained in:
parent
5354bf1928
commit
1c94eb2b79
|
@ -8,7 +8,7 @@ static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const int horizpadbar = 5;
|
static const int horizpadbar = 5;
|
||||||
static const int vertpadbar = 6;
|
static const int vertpadbar = 8;
|
||||||
static const int vertpadstat = 0;
|
static const int vertpadstat = 0;
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"Ubuntu Mono:style=Bold:size=10:antialias=true:autohint=true",
|
"Ubuntu Mono:style=Bold:size=10:antialias=true:autohint=true",
|
||||||
|
|
2
config.h
2
config.h
|
@ -8,7 +8,7 @@ static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const int horizpadbar = 5;
|
static const int horizpadbar = 5;
|
||||||
static const int vertpadbar = 6;
|
static const int vertpadbar = 8;
|
||||||
static const int vertpadstat = 0;
|
static const int vertpadstat = 0;
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"Ubuntu Mono:style=Bold:size=10:antialias=true:autohint=true",
|
"Ubuntu Mono:style=Bold:size=10:antialias=true:autohint=true",
|
||||||
|
|
18
dwm.c
18
dwm.c
|
@ -740,7 +740,7 @@ drawstatusbar(Monitor *m, int bh, char* stext) {
|
||||||
|
|
||||||
w += 2; /* 1px padding on both sides */
|
w += 2; /* 1px padding on both sides */
|
||||||
ret = m->ww - w;
|
ret = m->ww - w;
|
||||||
x = m->ww - w - 2 * vpb;
|
x = m->ww - w - 2 * hpb;
|
||||||
|
|
||||||
drw_setscheme(drw, scheme[LENGTH(colors)]);
|
drw_setscheme(drw, scheme[LENGTH(colors)]);
|
||||||
drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
|
drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
|
||||||
|
@ -839,10 +839,18 @@ drawbar(Monitor *m)
|
||||||
w = TEXTW(tags[i]);
|
w = TEXTW(tags[i]);
|
||||||
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
||||||
if (occ & 1 << i)
|
if (occ & 1 << i) {
|
||||||
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
// drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
||||||
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
// m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
|
||||||
urg & 1 << i);
|
// urg & 1 << i);
|
||||||
|
drw_rect(drw, x + w / 3, 0, w / 3, 2, 0, 0);
|
||||||
|
drw_rect(drw, x + w / 3, bh - 2, w / 3, 2, 0, 0);
|
||||||
|
if (m == selmon && selmon->sel && selmon->sel->tags & 1 << i) {
|
||||||
|
drw_rect(drw, x, 0, w, 2, 0, 0);
|
||||||
|
drw_rect(drw, x, bh - 2, w, 2, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
x += w;
|
x += w;
|
||||||
}
|
}
|
||||||
w = blw = TEXTW(m->ltsymbol);
|
w = blw = TEXTW(m->ltsymbol);
|
||||||
|
|
Loading…
Reference in New Issue