diff options
Diffstat (limited to 'source/rofi.c')
-rw-r--r-- | source/rofi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c index f89c64d4..7fb2d28d 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -64,6 +64,8 @@ #include "gitconfig.h" +#include "theme.h" + // Pidfile. char *pidfile = NULL; const char *cache_dir = NULL; @@ -896,6 +898,12 @@ int main ( int argc, char *argv[] ) // Parse command line for settings, independent of other -no-config. config_parse_cmd_options_dynamic ( ); + char *theme = NULL; + if ( find_arg_str ( "-theme", &theme ) > 0 ){ + rofi_theme_parse_file ( theme ); + rofi_theme_print ( rofi_theme ); + } + // Dump. // catch help request if ( find_arg ( "-h" ) >= 0 || find_arg ( "-help" ) >= 0 || find_arg ( "--help" ) >= 0 ) { |