mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 00:27:36 +00:00
Update message when launched without show argument.
This commit is contained in:
parent
4d19e35b0e
commit
d31fc5c8bc
2 changed files with 25 additions and 7 deletions
|
@ -4,13 +4,13 @@
|
|||
const char *default_theme =
|
||||
"* {"
|
||||
" spacing: 2;"
|
||||
" background: #00000000;"
|
||||
" background: #FFFDF6E3;"
|
||||
"}"
|
||||
"#window {"
|
||||
" border: 1;"
|
||||
" foreground: #FF002B36;"
|
||||
" padding: 5;"
|
||||
" background: #FFFDF6E3;"
|
||||
" background: @background;"
|
||||
"}"
|
||||
"#window.mainbox {"
|
||||
" border: 0;"
|
||||
|
@ -22,7 +22,6 @@ const char *default_theme =
|
|||
"}"
|
||||
"#window.mainbox.message.normal {"
|
||||
" foreground: #FF002B36;"
|
||||
" background: #FFFDF6E3;"
|
||||
"}"
|
||||
"#window.mainbox.listview {"
|
||||
" fixed-height: 0;"
|
||||
|
@ -83,6 +82,6 @@ const char *default_theme =
|
|||
"}"
|
||||
"#window.mainbox.inputbar.normal {"
|
||||
" foreground: #FF002B36;"
|
||||
" background: #FFFDF6E3;"
|
||||
" background: @background;"
|
||||
"}";
|
||||
#endif
|
||||
|
|
|
@ -797,7 +797,7 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
|
|||
run_switcher ( index );
|
||||
}
|
||||
else {
|
||||
fprintf ( stderr, "The %s switcher has not been enabled\n", sname );
|
||||
fprintf ( stderr, "The %s mode has not been enabled\n", sname );
|
||||
g_main_loop_quit ( main_loop );
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
@ -807,8 +807,27 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
|
|||
}
|
||||
else{
|
||||
// Daemon mode
|
||||
fprintf ( stderr, "Rofi daemon mode is now removed.\n" );
|
||||
fprintf ( stderr, "Please use your window manager binding functionality or xbindkeys to replace it.\n" );
|
||||
fprintf ( stderr, "Please specify the mode you want to show.\n\n" );
|
||||
fprintf ( stderr, " rofi -show {mode}\n\n");
|
||||
fprintf ( stderr, "The following modi are available:\n" );
|
||||
for ( unsigned int j = 0; j < num_modi; j++ ) {
|
||||
fprintf ( stderr, " * %s\n", modi[j]->name);
|
||||
}
|
||||
fprintf ( stderr, "\nThe following can be enabled:\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;
|
||||
}
|
||||
}
|
||||
if ( ! active ) {
|
||||
fprintf ( stderr, " * %s\n", available_modi[i]->name);
|
||||
}
|
||||
}
|
||||
fprintf ( stderr, "\nTo activate a mode, add it to the list of modi in the 'modi' setting.");
|
||||
|
||||
g_main_loop_quit ( main_loop );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue