1 module config; 2 import x11.X; 3 import types; 4 import old; 5 import theme.layout; 6 7 static immutable string VERSION = "0.1 Cobox"; 8 enum MODKEY = Mod1Mask; 9 10 static immutable Layout[] layouts = [ 11 /* symbol arrange function */ 12 { symbol:"><>", arrange:null }, /* no layout function means floating behavior */ 13 /* { symbol:"[]=", arrange:&tile }, first entry is default 14 { symbol:"[M]", arrange:&monocle },*/ 15 ]; 16 17 static immutable Rule[] rules = [ 18 /* xprop(1): 19 * WM_CLASS(STRING) = instance, klass 20 * WM_NAME(STRING) = title 21 */ 22 /* klass instance title tags mask isfloating monitor */ 23 { "xterm", null, null, 1, false, -1 }, 24 //{ "Firefox", null, null, 1 << 8, false, -1 }, 25 ]; 26 27 static immutable string normbordercolor = "#cccccc"; 28 static immutable string normbgcolor = "#000000"; 29 static immutable string normfgcolor = "#cccccc"; 30 static immutable string selbordercolor = "#cccccc"; 31 static immutable string selbgcolor = "#FF0000"; 32 static immutable string selfgcolor = "#eeeeee"; 33 34 static immutable uint borderpx = 0; /* border pixel of windows */ 35 static immutable uint snap = 32; /* snap pixel */ 36 static immutable bool showbar = true; /* false means no bar */ 37 static immutable bool topbar = true; /* false means bottom bar */ 38 static bool running = true; 39 40 immutable string broken = "broken"; 41 immutable string[] tags = [ "asterix", "obelix", "idefix", "avoranfix", "logs" ]; 42 static immutable string font = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*"; 43 44 /* commands */ 45 static char[2] dmenumon = "0"; /* component of dmenucmd, manipulated in spawn() */ 46 static immutable string[] dmenucmd = [ "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor]; 47 static immutable string[] termcmd = ["uxterm"]; 48 49 /* layout(s) */ 50 static immutable float mfact = 0.55; /* factor of master area size [0.05..0.95] */ 51 static immutable int nmaster = 1; /* number of clients in master area */ 52 static immutable bool resizehints = true; /* true means respect size hints in tiled resizals */