diff --git a/docs/help/in/statusbar.in b/docs/help/in/statusbar.in new file mode 100644 index 00000000..5b47bc86 --- /dev/null +++ b/docs/help/in/statusbar.in @@ -0,0 +1,4 @@ + +@SYNTAX:statusbar@ + +Commands for modifying statusbar. diff --git a/src/fe-text/statusbar-config.c b/src/fe-text/statusbar-config.c index 5c5b8316..a16c7545 100644 --- a/src/fe-text/statusbar-config.c +++ b/src/fe-text/statusbar-config.c @@ -251,18 +251,21 @@ static void read_statusbar_config(void) statusbars_create_window_bars(); } +/* SYNTAX: STATUSBAR ENABLE */ static void cmd_statusbar_enable(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_str(node, "disabled", NULL); } +/* SYNTAX: STATUSBAR DISABLE */ static void cmd_statusbar_disable(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_bool(node, "disabled", TRUE); } +/* SYNTAX: STATUSBAR TYPE window|root */ static void cmd_statusbar_type(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -276,6 +279,7 @@ static void cmd_statusbar_type(const char *data, void *server, } } +/* SYNTAX: STATUSBAR PLACEMENT top|bottom */ static void cmd_statusbar_placement(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -289,12 +293,14 @@ static void cmd_statusbar_placement(const char *data, void *server, } } +/* SYNTAX: STATUSBAR POSITION */ static void cmd_statusbar_position(const char *data, void *server, void *item, CONFIG_NODE *node) { iconfig_node_set_int(node, "position", atoi(data)); } +/* SYNTAX: STATUSBAR VISIBLE always|active|inactive */ static void cmd_statusbar_visible(CONFIG_NODE *node, void *server, void *item, const char *data) { @@ -345,6 +351,8 @@ static CONFIG_NODE *statusbar_items_section(CONFIG_NODE *parent) return parent; } +/* SYNTAX: STATUSBAR ADD [-before | -after ] + [-priority #] [-alignment left|right] */ static void cmd_statusbar_add(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -385,6 +393,7 @@ static void cmd_statusbar_add(const char *data, void *server, cmd_params_free(free_arg); } +/* SYNTAX: STATUSBAR REMOVE */ static void cmd_statusbar_remove(const char *data, void *server, void *item, CONFIG_NODE *node) { @@ -400,7 +409,6 @@ static void cmd_statusbar_remove(const char *data, void *server, } } -/* SYNTAX: STATUSBAR [enable | disable] | [add|remove ] */ static void cmd_statusbar(const char *data) { CONFIG_NODE *node;