diff options
| author | bakkeby <[email protected]> | 2020-06-30 11:07:42 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-06-30 11:07:42 +0200 |
| commit | 9e8d70788cfd03ca05ca57fab0b469f40c6f47e0 (patch) | |
| tree | cbad3f4d15f4fc91d5a868ed21ff25ed6380583e | |
| parent | 8c07458f1166d771fbb81039bf474b01fcc2f0a2 (diff) | |
| download | dwm-flexipatch-9e8d70788cfd03ca05ca57fab0b469f40c6f47e0.tar.gz dwm-flexipatch-9e8d70788cfd03ca05ca57fab0b469f40c6f47e0.zip | |
Adding alternative activetagindicatorbar patch
| -rw-r--r-- | dwm.c | 10 | ||||
| -rw-r--r-- | patches.def.h | 5 |
2 files changed, 13 insertions, 2 deletions
@@ -1521,13 +1521,13 @@ drawbar(Monitor *m) stp = lrpad / 2; #endif // STATUSPADDING_PATCH #if !HIDEVACANTTAGS_PATCH - #if !ACTIVETAGINDICATORBAR_PATCH + #if !ACTIVETAGINDICATORBAR_PATCH && !ACTIVETAGINDICATORBAR_ALT1_PATCH #if PANGO_PATCH int boxs = drw->font->h / 9; #else int boxs = drw->fonts->h / 9; #endif // PANGO_PATCH - #endif // ACTIVETAGINDICATORBAR_PATCH + #endif // ACTIVETAGINDICATORBAR_PATCH | ACTIVETAGINDICATORBAR_ALT1_PATCH #if PANGO_PATCH int boxw = drw->font->h / 6 + 2; #else @@ -1699,6 +1699,8 @@ drawbar(Monitor *m) if (occ & 1 << i) #if ACTIVETAGINDICATORBAR_PATCH drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw, + #elif ACTIVETAGINDICATORBAR_ALT1_PATCH + drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, #else drw_rect(drw, x + boxs, boxs, boxw, boxw, #endif // ACTIVETAGINDICATORBAR_PATCH @@ -1812,6 +1814,8 @@ drawbar(Monitor *m) if (c->isfloating) #if ACTIVETAGINDICATORBAR_PATCH drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw, c->isfixed, 0); + #elif ACTIVETAGINDICATORBAR_ALT1_PATCH + drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, #else drw_rect(drw, x + boxs, boxs, boxw, boxw, c->isfixed, 0); #endif // ACTIVETAGINDICATORBAR_PATCH @@ -1868,6 +1872,8 @@ drawbar(Monitor *m) if (m->sel->isfloating) #if ACTIVETAGINDICATORBAR_PATCH drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw, m->sel->isfixed, 0); + #elif ACTIVETAGINDICATORBAR_ALT1_PATCH + drw_rect(drw, x + boxw, bh - boxw/2, w - ( 2 * boxw + 1), boxw/2, #else drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); #endif // ACTIVETAGINDICATORBAR_PATCH diff --git a/patches.def.h b/patches.def.h index 1a85c83..908b8f7 100644 --- a/patches.def.h +++ b/patches.def.h @@ -18,6 +18,11 @@ */ #define ACTIVETAGINDICATORBAR_PATCH 0 +/* Alternative patch to the activetagindicatorbar patch, adds the bar below the tag + * icon rather than above. + */ +#define ACTIVETAGINDICATORBAR_ALT1_PATCH 0 + /* The alpha patch adds transparency for the status bar. * You need to uncomment the corresponding line in config.mk to use the -lXrender library * when including this patch. |
