summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-08-18 21:29:44 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-08-18 21:29:44 +0200
commitbb52b40c8ed5b3c938f6bb157b08bcb18bb067c2 (patch)
treeb51353978312adc5624872a2f0fbb3e2f0da79d3 /i3status.c
parent56312001de9362ced18962149bd8143185214561 (diff)
Add support for xmobar
Use i3status-xmobar | xmobar -o -t "%StdinReader%" -c "[Run StdinReader]" You might need to copy the default configuration to ~/.xmobarrc
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3status.c b/i3status.c
index 909fa4f..04fa57f 100644
--- a/i3status.c
+++ b/i3status.c
@@ -136,10 +136,10 @@ int main(int argc, char *argv[]) {
for (i = 0; i < num_run_watches; i += 2) {
bool running = process_runs(run_watches[i+1]);
if (use_colors)
- snprintf(part, sizeof(part), "%s%s: %s",
+ snprintf(part, sizeof(part), "%s%s: %s%s",
(running ? color("#00FF00") : color("#FF0000")),
run_watches[i],
- (running ? "yes" : "no"));
+ (running ? "yes" : "no"), endcolor());
else snprintf(part, sizeof(part), "%s: %s", run_watches[i], (running ? "yes" : "no"));
snprintf(pathbuf, sizeof(pathbuf), "%d%s", order[ORDER_RUN], run_watches[i]);
write_to_statusbar(pathbuf, part, false);