summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-03 08:51:25 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-03 08:51:25 +0200
commitf7971fc0e69c395d3fc2ba60fdf354f7d7c08831 (patch)
tree85a1ef1274631e8909013c76c9dda5116ff1f1d0 /source
parented647dc4c1c2d68888a0f85f6d2db55879383b48 (diff)
Add list of available modi to help output.
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 7e326a9c..6f262697 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -299,6 +299,23 @@ static void help ( G_GNUC_UNUSED int argc, char **argv )
print_options ();
printf ( "\n" );
x11_dump_monitor_layout ();
+ printf("\n");
+ printf("Detected modi:\n");
+ for ( unsigned int i = 0; i < num_available_modi; i++ ) {
+ gboolean active = FALSE;
+ for ( unsigned int j = 0; j < num_modi; j++ ) {
+ if ( modi[j] == available_modi[i] ) {
+ active = TRUE;
+ break;
+ }
+ }
+ fprintf ( stderr, " * %s%s%s%s\n",
+ active?"+":"" ,
+ is_term ? (active?color_green:color_red) : "",
+ available_modi[i]->name,
+ is_term ? color_reset : ""
+ );
+ }
printf ( "\n" );
printf ( "Compile time options:\n" );
#ifdef WINDOW_MODE