From 8ed31cab7e0bd4e68b504d202e0bed951ee5c182 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 10 Dec 2015 18:20:04 +0100 Subject: Add option to dump color scheme. --- source/xrmoptions.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/xrmoptions.c') diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 03cfd301..2d3b5dd2 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -510,3 +510,21 @@ void print_help_msg ( const char *option, const char *type, const char*text, con } } } + +void print_xresources_theme ( void ) +{ + if( config.color_enabled != TRUE ) { + printf("! Dumping theme only works for the extended color scheme.\n"); + return; + } + printf("! ------------------------------------------------------------------------------\n"); + printf("! ROFI Color theme\n"); + printf("! ------------------------------------------------------------------------------\n"); + const char * namePrefix = "rofi"; + unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions ); + for ( unsigned int i = 0; i < entries; ++i ) { + if ( strncmp(xrmOptions[i].name, "color-",6) == 0){ + xresource_dump_entry(namePrefix, &xrmOptions[i]); + } + } +} -- cgit v1.2.3