progman.exe^H^H^H^H
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add "root_bgcolor" config setting to color the root window

By default we won't change it, but this allows themes to set a
specific color.

+24 -10
+10
progman.c
··· 123 123 char *opt_bevel_light = DEF_BEVEL_LIGHT; 124 124 char *opt_bd = DEF_BD; 125 125 char *opt_bdf = DEF_BDF; 126 + char *opt_root_bg = DEF_ROOTBG; 126 127 int opt_bw = DEF_BW; 127 128 int opt_pad = DEF_PAD; 128 129 int opt_bevel = DEF_BEVEL; ··· 211 212 opt_pad = atoi(val); 212 213 else if (strcmp(key, "edgeresist") == 0) 213 214 opt_edge_resist = atoi(val); 215 + else if (strcmp(key, "root_bgcolor") == 0) 216 + opt_root_bg = strdup(val); 214 217 else if (strcmp(key, "launcher") == 0) 215 218 opt_launcher = strdup(val); 216 219 else if (strcmp(key, "terminal") == 0) ··· 234 237 XSetWindowAttributes sattr; 235 238 XWindowAttributes attr; 236 239 XIconSize *xis; 240 + XColor root_bg; 237 241 int shape_err; 238 242 Window qroot, qparent, *wins; 239 243 unsigned int nwins, i; ··· 330 334 XFree(xis); 331 335 332 336 find_supported_atoms(); 337 + 338 + if (opt_root_bg != NULL && strlen(opt_root_bg)) { 339 + XAllocNamedColor(dpy, def_cmap, opt_root_bg, &root_bg, &exact); 340 + XSetWindowBackground(dpy, root, root_bg.pixel); 341 + XClearWindow(dpy, root); 342 + } 333 343 334 344 set_atoms(root, net_num_desks, XA_CARDINAL, &ndesks, 1); 335 345 get_atoms(root, net_cur_desk, XA_CARDINAL, 0, &cur_desk, 1, NULL);
+9 -9
progman.h
··· 46 46 #define DEF_BD "#c0c7c8" 47 47 #define DEF_BDF "black" 48 48 49 + /* Default root color is unchanged */ 50 + #define DEF_ROOTBG NULL 51 + 49 52 #ifdef HIDPI 50 53 #define DEF_FONT "Microsoft Sans Serif:bold:size=14" 51 54 #define DEF_ICONFONT "Microsoft Sans Serif:size=11" 52 55 #define DEF_BEVEL 2 53 56 #define DEF_PAD 6 54 57 #define DEF_BW 6 58 + #define DEF_EDGE_RES 80 59 + #define ICON_SIZE 64 55 60 #else 56 61 #define DEF_FONT "system:size=13" 57 62 #define DEF_ICONFONT "Microsoft Sans Serif:size=11" 58 63 #define DEF_BEVEL 2 59 64 #define DEF_PAD 3 60 65 #define DEF_BW 3 66 + #define DEF_EDGE_RES 40 67 + #define ICON_SIZE 32 61 68 #endif 62 69 63 70 #define DEF_NDESKS 5 ··· 66 73 #define DEF_TERMINAL "xterm" 67 74 68 75 #define DOUBLE_CLICK_MSEC 250 69 - 70 - #ifdef HIDPI 71 - #define DEF_EDGE_RES 80 72 - #define ICON_SIZE 64 73 - #else 74 - #define DEF_EDGE_RES 40 75 - #define ICON_SIZE 32 76 - #endif 77 76 78 77 /* End of options */ 79 78 ··· 284 283 extern char *opt_unfocused_fg; 285 284 extern char *opt_unfocused_bg; 286 285 extern char *opt_button_bg; 287 - extern int opt_bevel; 288 286 extern char *opt_bevel_dark; 289 287 extern char *opt_bevel_light; 290 288 extern char *opt_bd; 291 289 extern char *opt_bdf; 290 + extern char *opt_root_bg; 291 + extern int opt_bevel; 292 292 extern int opt_bw; 293 293 extern int opt_pad; 294 294 extern int opt_edge_resist;
+4 -1
progman.ini
··· 15 15 button_bgcolor = #c0c7c8 16 16 bordercolor = #c0c7c8 17 17 framecolor = black 18 + # When not specified, the root color is not changed 19 + #root_bgcolor = #c0c7c8 18 20 bdwidth = 6 19 21 padding = 6 20 - # when moving windows, how hard to resist going off-screen 22 + # When moving windows, how hard to resist going off-screen 21 23 edgeresist = 80 24 + 22 25 launcher = aemenu 23 26 terminal = xterm 24 27
+1
themes/hotdogstand.ini
··· 6 6 unfocused_bgcolor = red 7 7 bordercolor = red 8 8 framecolor = black 9 + root_bgcolor = yellow