summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-30 11:14:12 +0200
committerbakkeby <[email protected]>2020-08-30 11:14:12 +0200
commitb3f078abfb669f85e99e6170b8826298a292cf23 (patch)
tree31031150acb97cd7f0ed413c2ea291eca43c7ce3 /patch
parentff7fbd24106c716a141830b472b7fca48f52476f (diff)
downloaddwm-flexipatch-b3f078abfb669f85e99e6170b8826298a292cf23.tar.gz
dwm-flexipatch-b3f078abfb669f85e99e6170b8826298a292cf23.zip
Silly addendum: adding box indicator just to inspire some ideas
Diffstat (limited to 'patch')
-rw-r--r--patch/bar_indicators.c10
-rw-r--r--patch/bar_indicators.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c
index 51c1ea2..bf89f62 100644
--- a/patch/bar_indicators.c
+++ b/patch/bar_indicators.c
@@ -33,13 +33,19 @@ drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned in
drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw/2, filled, invert);
break;
case INDICATOR_TOP_BAR_SLIM:
- drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), 1, filled, invert);
+ drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), 1, 0, invert);
break;
case INDICATOR_BOTTOM_BAR:
drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, filled, invert);
break;
case INDICATOR_BOTTOM_BAR_SLIM:
- drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), 1, 1, invert);
+ drw_rect(drw, x + boxw, bh - 1, w - ( 2 * boxw + 1), 1, 0, invert);
+ break;
+ case INDICATOR_BOX:
+ drw_rect(drw, x + boxw, 0, w - 2 * boxw, bh, 0, invert);
+ break;
+ case INDICATOR_BOX_WIDER:
+ drw_rect(drw, x + boxw/2, 0, w - boxw, bh, 0, invert);
break;
case INDICATOR_CLIENT_DOTS:
for (c = m->clients; c; c = c->next) {
diff --git a/patch/bar_indicators.h b/patch/bar_indicators.h
index 850c326..848fc76 100644
--- a/patch/bar_indicators.h
+++ b/patch/bar_indicators.h
@@ -6,6 +6,8 @@ enum {
INDICATOR_TOP_BAR_SLIM,
INDICATOR_BOTTOM_BAR,
INDICATOR_BOTTOM_BAR_SLIM,
+ INDICATOR_BOX,
+ INDICATOR_BOX_WIDER,
INDICATOR_CLIENT_DOTS,
INDICATOR_RIGHT_TAGS
};