diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-08-18 21:29:44 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-08-18 21:29:44 +0200 |
commit | bb52b40c8ed5b3c938f6bb157b08bcb18bb067c2 (patch) | |
tree | b51353978312adc5624872a2f0fbb3e2f0da79d3 /i3status.c | |
parent | 56312001de9362ced18962149bd8143185214561 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |