… | |
… | |
108 | BOOL (Rs_transparent_all, "inheritPixmapforce", "ipf", Opt_transparent_all, "forcefully inherit root pixmap"), |
108 | BOOL (Rs_transparent_all, "inheritPixmapforce", "ipf", Opt_transparent_all, "forcefully inherit root pixmap"), |
109 | SWCH ("tr", Opt_transparent, NULL), |
109 | SWCH ("tr", Opt_transparent, NULL), |
110 | #if TINTING |
110 | #if TINTING |
111 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
111 | STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"), |
112 | #endif |
112 | #endif |
|
|
113 | #endif |
|
|
114 | #ifdef OFF_FOCUS_FADING |
|
|
115 | STRG (Rs_fade, "fading", "fade", "%", "make colors x% darker when urxvt is losing focus."), |
|
|
116 | #endif |
|
|
117 | #ifdef TINTING |
|
|
118 | STRG (Rs_shade, "shading", "sh", "%", "shade background by x% when tinting."), |
113 | #endif |
119 | #endif |
114 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
120 | BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, "utmp inhibit"), |
115 | #ifndef NO_BELL |
121 | #ifndef NO_BELL |
116 | BOOL (Rs_visualBell, "visualBell", "vb", Opt_visualBell, "visual bell"), |
122 | BOOL (Rs_visualBell, "visualBell", "vb", Opt_visualBell, "visual bell"), |
117 | # if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION) |
123 | # if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION) |
… | |
… | |
201 | #ifndef NO_FRILLS |
207 | #ifndef NO_FRILLS |
202 | STRG (Rs_ext_bwidth, "externalBorder", "w", "number", "external border in pixels"), |
208 | STRG (Rs_ext_bwidth, "externalBorder", "w", "number", "external border in pixels"), |
203 | STRG (Rs_ext_bwidth, NULL, "bw", NULL, NULL), |
209 | STRG (Rs_ext_bwidth, NULL, "bw", NULL, NULL), |
204 | STRG (Rs_ext_bwidth, NULL, "borderwidth", NULL, NULL), |
210 | STRG (Rs_ext_bwidth, NULL, "borderwidth", NULL, NULL), |
205 | STRG (Rs_int_bwidth, "internalBorder", "b", "number", "internal border in pixels"), |
211 | STRG (Rs_int_bwidth, "internalBorder", "b", "number", "internal border in pixels"), |
|
|
212 | BOOL (Rs_borderLess, "borderLess", "bl", Opt_borderLess, "borderless window"), |
206 | #endif |
213 | #endif |
207 | #ifndef NO_LINESPACE |
214 | #ifndef NO_LINESPACE |
208 | STRG (Rs_lineSpace, "lineSpace", "lsp", "number", "number of extra pixels between rows"), |
215 | STRG (Rs_lineSpace, "lineSpace", "lsp", "number", "number of extra pixels between rows"), |
209 | #endif |
216 | #endif |
210 | STRG (Rs_scrollBar_thickness, "thickness", "sbt", "number", "scrollbar thickness/width in pixels"), |
217 | STRG (Rs_scrollBar_thickness, "thickness", "sbt", "number", "scrollbar thickness/width in pixels"), |
… | |
… | |
462 | |
469 | |
463 | if (entry < optList_size ()) |
470 | if (entry < optList_size ()) |
464 | { |
471 | { |
465 | if (optList_isReverse (entry)) |
472 | if (optList_isReverse (entry)) |
466 | flag = flag == On ? Off : On; |
473 | flag = flag == On ? Off : On; |
|
|
474 | |
467 | if (optList_strlen (entry)) |
475 | if (optList_strlen (entry)) |
468 | { /* string value */ |
|
|
469 | const char *str = argv[++i]; |
|
|
470 | |
|
|
471 | #ifdef DEBUG_RESOURCES |
|
|
472 | fprintf (stderr, "string (%s,%s) = ", |
|
|
473 | optList[entry].opt ? optList[entry].opt : "nil", |
|
|
474 | optList[entry].kw ? optList[entry].kw : "nil"); |
|
|
475 | #endif |
|
|
476 | if (flag == On && str && (optList[entry].doff != -1)) |
|
|
477 | { |
476 | { |
478 | #ifdef DEBUG_RESOURCES |
|
|
479 | fprintf (stderr, "\"%s\"\n", str); |
|
|
480 | #endif |
|
|
481 | rs[optList[entry].doff] = str; |
|
|
482 | /* |
477 | /* |
483 | * special cases are handled in main.c:main () to allow |
478 | * special cases are handled in main.c:main () to allow |
484 | * X resources to set these values before we settle for |
479 | * X resources to set these values before we settle for |
485 | * default values |
480 | * default values |
486 | */ |
481 | */ |
487 | } |
|
|
488 | #ifdef DEBUG_RESOURCES |
|
|
489 | else |
|
|
490 | fprintf (stderr, "???\n"); |
|
|
491 | #endif |
|
|
492 | |
482 | |
|
|
483 | if (optList[entry].doff != -1) |
|
|
484 | rs[optList[entry].doff] = flag == On && argv[i+1] |
|
|
485 | ? argv[++i] : 0; |
493 | } |
486 | } |
494 | else |
487 | else |
495 | { /* boolean value */ |
488 | { /* boolean value */ |
496 | #ifdef DEBUG_RESOURCES |
489 | #ifdef DEBUG_RESOURCES |
497 | fprintf (stderr, "boolean (%s,%s) = %s\n", |
490 | fprintf (stderr, "boolean (%s,%s) = %s\n", |