projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b4a5e
)
bar shows if currently is tiled (Mod1-space) or floating (Mod1-Shift-space) mode
author
Anselm R. Garbe
<garbeam@wmii.de>
Fri, 14 Jul 2006 16:55:50 +0000
(18:55 +0200)
committer
Anselm R. Garbe
<garbeam@wmii.de>
Fri, 14 Jul 2006 16:55:50 +0000
(18:55 +0200)
bar.c
patch
|
blob
|
history
client.c
patch
|
blob
|
history
diff --git
a/bar.c
b/bar.c
index 611c6698c2ef1e0b4377bf0c46e2e74644f74532..953ac6b892f79d0e1987de551652d85e20bb7e8e 100644
(file)
--- 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;
diff --git
a/client.c
b/client.c
index 487cb0caebec3c952f344a9aeefd39bb88855e15..5b666c96d2cea0d69ce039ad18c8730c9cf7da89 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-120,6
+120,7
@@
floating(Arg *arg)
focus(sel);
}
}
+ draw_bar();
}
void
@@
-176,6
+177,7
@@
tiling(Arg *arg)
focus(sel);
}
}
+ draw_bar();
}
void