mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05: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 =
|
const char *default_theme =
|
||||||
"* {"
|
"* {"
|
||||||
" spacing: 2;"
|
" spacing: 2;"
|
||||||
" background: #00000000;"
|
" background: #FFFDF6E3;"
|
||||||
"}"
|
"}"
|
||||||
"#window {"
|
"#window {"
|
||||||
" border: 1;"
|
" border: 1;"
|
||||||
" foreground: #FF002B36;"
|
" foreground: #FF002B36;"
|
||||||
" padding: 5;"
|
" padding: 5;"
|
||||||
" background: #FFFDF6E3;"
|
" background: @background;"
|
||||||
"}"
|
"}"
|
||||||
"#window.mainbox {"
|
"#window.mainbox {"
|
||||||
" border: 0;"
|
" border: 0;"
|
||||||
|
@ -22,7 +22,6 @@ const char *default_theme =
|
||||||
"}"
|
"}"
|
||||||
"#window.mainbox.message.normal {"
|
"#window.mainbox.message.normal {"
|
||||||
" foreground: #FF002B36;"
|
" foreground: #FF002B36;"
|
||||||
" background: #FFFDF6E3;"
|
|
||||||
"}"
|
"}"
|
||||||
"#window.mainbox.listview {"
|
"#window.mainbox.listview {"
|
||||||
" fixed-height: 0;"
|
" fixed-height: 0;"
|
||||||
|
@ -83,6 +82,6 @@ const char *default_theme =
|
||||||
"}"
|
"}"
|
||||||
"#window.mainbox.inputbar.normal {"
|
"#window.mainbox.inputbar.normal {"
|
||||||
" foreground: #FF002B36;"
|
" foreground: #FF002B36;"
|
||||||
" background: #FFFDF6E3;"
|
" background: @background;"
|
||||||
"}";
|
"}";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -797,7 +797,7 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
|
||||||
run_switcher ( index );
|
run_switcher ( index );
|
||||||
}
|
}
|
||||||
else {
|
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 );
|
g_main_loop_quit ( main_loop );
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
@ -807,8 +807,27 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Daemon mode
|
// Daemon mode
|
||||||
fprintf ( stderr, "Rofi daemon mode is now removed.\n" );
|
fprintf ( stderr, "Please specify the mode you want to show.\n\n" );
|
||||||
fprintf ( stderr, "Please use your window manager binding functionality or xbindkeys to replace it.\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 );
|
g_main_loop_quit ( main_loop );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue