summaryrefslogtreecommitdiffstats
path: root/source/xrmoptions.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-12-10 18:20:04 +0100
committerDave Davenport <qball@gmpclient.org>2015-12-10 18:20:04 +0100
commit8ed31cab7e0bd4e68b504d202e0bed951ee5c182 (patch)
tree626f30b98bb0dbedeb9f4913398e7d1bbfd22afc /source/xrmoptions.c
parent691b06f76778f1f69fd2d8af41737ab88a0bdc55 (diff)
Add option to dump color scheme.
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r--source/xrmoptions.c18
1 files changed, 18 insertions, 0 deletions
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]);
+ }
+ }
+}