]> git.sur5r.net Git - i3/i3status/blob - src/print_run_watch.c
Breaks configfiles! Major refactoring of i3status, see below
[i3/i3status] / src / print_run_watch.c
1 #include <stdio.h>
2 #include "i3status.h"
3
4 void print_run_watch(const char *title, const char *pidfile, const char *format) {
5         bool running = process_runs(pidfile);
6         printf("%s%s: %s%s",
7                 (running ? color("#00FF00") : color("#FF0000")),
8                 title,
9                 (running ? "yes" : "no"), endcolor());
10 }