diff options
| author | bakkeby <[email protected]> | 2020-08-28 19:48:30 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-28 19:48:30 +0200 |
| commit | 8ff0adeabde6ffbef839ccebbe623e743a120a91 (patch) | |
| tree | c3cf5f1bce392f54b23335c91417ad6b90fd5675 /patch | |
| parent | b714329d87440124afa905e14126a8896b1c7109 (diff) | |
| download | dwm-flexipatch-8ff0adeabde6ffbef839ccebbe623e743a120a91.tar.gz dwm-flexipatch-8ff0adeabde6ffbef839ccebbe623e743a120a91.zip | |
indicators: Adding the NONE indicator to disable e.g. indicators for tags
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/bar_indicators.c | 2 | ||||
| -rw-r--r-- | patch/bar_indicators.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/patch/bar_indicators.c b/patch/bar_indicators.c index cd31929..92741b6 100644 --- a/patch/bar_indicators.c +++ b/patch/bar_indicators.c @@ -13,7 +13,7 @@ void drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int w, unsigned int tag, int filled, int invert, int type) { int i, boxw, boxs, indn = 0; - if (!(occ & 1 << tag)) + if (!(occ & 1 << tag) || type == INDICATOR_NONE) return; boxs = drw->fonts->h / 9; diff --git a/patch/bar_indicators.h b/patch/bar_indicators.h index cd1d259..c71c417 100644 --- a/patch/bar_indicators.h +++ b/patch/bar_indicators.h @@ -1,4 +1,5 @@ enum { + INDICATOR_NONE, INDICATOR_TOP_LEFT_SQUARE, INDICATOR_TOP_LEFT_LARGER_SQUARE, INDICATOR_TOP_BAR, |
