aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMart Lubbers2016-01-17 18:05:11 +0100
committerCamil Staps2019-12-11 17:29:33 +0100
commit625518acd7c62acde2d6d150272fa17a45eb3ce9 (patch)
tree7142278a1694f3e2fda2276e1277525ee31a7632 /include
parentMerge pull request #373 from zsugabubus/fix-memory (diff)
Add support for custom commandsHEADmaster
Add the cmd option in the config that runs a shell command.
Diffstat (limited to 'include')
-rw-r--r--include/i3status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 2e314b1..e1a0e8b 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -227,6 +227,7 @@ void print_eth_info(yajl_gen json_gen, char *buffer, const char *interface, cons
void print_load(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const float max_threshold);
void print_memory(yajl_gen json_gen, char *buffer, const char *format, const char *format_degraded, const char *threshold_degraded, const char *threshold_critical, const char *memory_used_method, const char *unit, const int decimals);
void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *fmt_muted, const char *device, const char *mixer, int mixer_idx);
+void print_cmd(yajl_gen json_gen, char *buffer, const char *cmd);
bool process_runs(const char *path);
int volume_pulseaudio(uint32_t sink_idx, const char *sink_name);
bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]);