From 85c99ae8d4dcb0c55a3fa424a4c0adfdfd67965d Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 30 Aug 2020 10:00:30 +0200 Subject: [PATCH] Added slim variants for the bar indicators --- patch/bar_indicators.c | 6 ++++++ patch/bar_indicators.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c index 92741b6..676485f 100644 --- a/patch/bar_indicators.c +++ b/patch/bar_indicators.c @@ -32,9 +32,15 @@ drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned in case INDICATOR_TOP_BAR: 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); + break; case INDICATOR_BOTTOM_BAR: drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, 1, invert); break; + case INDICATOR_BOTTOM_BAR_SLIM: + drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), 1, 1, invert); + break; case INDICATOR_CLIENT_DOTS: for (c = m->clients; c; c = c->next) { if (c->tags & (1 << tag)) { diff --git a/patch/bar_indicators.h b/patch/bar_indicators.h index c71c417..850c326 100644 --- a/patch/bar_indicators.h +++ b/patch/bar_indicators.h @@ -3,7 +3,9 @@ enum { INDICATOR_TOP_LEFT_SQUARE, INDICATOR_TOP_LEFT_LARGER_SQUARE, INDICATOR_TOP_BAR, + INDICATOR_TOP_BAR_SLIM, INDICATOR_BOTTOM_BAR, + INDICATOR_BOTTOM_BAR_SLIM, INDICATOR_CLIENT_DOTS, INDICATOR_RIGHT_TAGS };