config.c (2982B)
1 #include "shod.h" 2 3 struct Config config = { 4 /* 5 * except for the foreground, colors fields are strings 6 * containing three elements delimited by colon: 7 * the body color, the color of the light 3D shadow, 8 * and the color of the dark 3D shadow. 9 */ 10 11 /* command to spawn when clicking the menu button */ 12 .menucmd = "shodmenu", 13 14 /* 0-or-1 flags */ 15 .floatdialog = 0, /* set to 1 to use floating dialog windows */ 16 .sloppyfocus = 0, /* set to 1 to use sloppy container focus */ 17 .sloppytiles = 0, /* set to 1 to use sloppy window focus */ 18 .honorconfig = 0, /* set to 1 to honor configure requests */ 19 .disablealttab = 0, /* set to 1 to disable alt-tab */ 20 .disablehidden = 0, /* set to 1 to disable notification of hidden window as minimized */ 21 22 /* general configuration */ 23 .altkeysym = XK_Alt_L, /* XK_Alt_L for Alt, XK_Super_L for Super (aka WinKey) */ 24 .tabkeysym = XK_Tab, /* tab key; you should probably not change this */ 25 .modifier = Mod1Mask, /* Mod1Mask for Alt, Mod4Mask for Super */ 26 .snap = 8, /* proximity of container edges to perform snap attraction */ 27 .font = "monospace:pixelsize=11", /* font for titles in titlebars */ 28 .ndesktops = 10, /* number of desktops per monitor */ 29 .movetime = 32, /* time (ms) to redraw containers during moving */ 30 .resizetime = 64, /* time (ms) to redraw containers during resizing */ 31 32 /* dock configuration */ 33 .dockwidth = 64, /* width of the dock (or its height, if it is horizontal) */ 34 .dockspace = 64, /* size of each dockapp (64 for windowmaker dockapps) */ 35 .dockgravity = "E", /* placement of the dock */ 36 37 /* notification configuration */ 38 .notifgap = 3, /* gap, in pixels, between notifications */ 39 .notifgravity = "NE", /* placement of notifications */ 40 41 /* title bar */ 42 .titlewidth = 17, 43 44 /* border */ 45 .borderwidth = 6, 46 47 /* colors */ 48 .colors = { 49 /* (border) MIDDLE LIGHT DARK */ 50 [FOCUSED] = {"#3465A4", "#729FCF", "#204A87"}, 51 [UNFOCUSED] = {"#555753", "#888A85", "#2E3436"}, 52 [URGENT] = {"#CC0000", "#EF2929", "#A40000"}, 53 54 /* (dock, text) BACKGROUND BORDER FOREGROUND */ 55 [STYLE_OTHER] = {"#121212", "#2E3436", "#FFFFFF"}, 56 }, 57 58 /* size of 3D shadow effect, must be less than borderwidth */ 59 .shadowthickness = 2, 60 61 /* the following are hardcoded rules; use X Resources to set rules without recompiling */ 62 .rules = (struct Rule []){ 63 /* class instance role type state desktop*/ 64 65 /* Although Firefox's PictureInPicture is technically a utility (sub)window, make it a normal one */ 66 { NULL, NULL, "PictureInPicture", TYPE_NORMAL, ABOVE, 0 }, 67 68 /* Last rule must be all NULL! */ 69 { NULL, NULL, NULL, TYPE_NORMAL, 0, 0 }, 70 } 71 };