mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Add list of available modi to help output.
This commit is contained in:
parent
ed647dc4c1
commit
f7971fc0e6
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue