diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 18:55:50 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 18:55:50 +0200 |
commit | 54775e0b3e48273240d8efa619af0ce85e3685da (patch) | |
tree | c2646e14f7c57e53e2cb3791db014d73227a7a46 /bar.c | |
parent | 59b4a5e4cac68dfe6d245b8b708c3cb805f49f6d (diff) | |
download | dwm-54775e0b3e48273240d8efa619af0ce85e3685da.tar.gz |
bar shows if currently is tiled (Mod1-space) or floating (Mod1-Shift-space) mode
Diffstat (limited to 'bar.c')
-rw-r--r-- | bar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bar.c b/bar.c index 611c669..953ac6b 100644 --- a/bar.c +++ b/bar.c @@ -23,11 +23,15 @@ void draw_bar() { int i; + char *mode = arrange == tiling ? "#" : "~"; + dc.x = dc.y = 0; dc.w = bw; drawtext(NULL, False, False); - dc.w = 0; + dc.w = textw(mode) + dc.font.height; + drawtext(mode, True, True); + for(i = 0; i < TLast; i++) { dc.x += dc.w; dc.w = textw(tags[i]) + dc.font.height; |