dwm-noxz

[fork] suckless dwm - personal fork
git clone git://git.noxz.tech/dwm-noxz
Log | Files | Refs | README | LICENSE

config.def.h (6833B)


      1 /* See LICENSE file for copyright and license details. */
      2 #define COL_DEF                     "#000000"
      3 #define MODKEY                      Mod4Mask
      4 
      5 /* appearance */
      6 static const unsigned int borderpx  = 2;        /* border pixel of windows */
      7 static const unsigned int snap      = 32;       /* snap pixel */
      8 static const int showbar            = 1;        /* 0 means no bar */
      9 static const int topbar             = 1;        /* 0 means bottom bar */
     10 static const int viewontag          = 1;
     11 static const int focusonwheel       = 0;
     12 static const char *fonts[]          = { "dnoxz_numerics:pixelsize=12:autohint=false" };
     13 static const char title_bg_dark[]   = "#030303";
     14 static const char title_bg_light[]  = "#fdfdfd";
     15 static const int color_ptrs[][4]    = {
     16 	/*                              fg          bg       border   float   */
     17 	[SchemeNorm]                   = { -1,      -1,      5,       -1      },
     18 	[SchemeSel]                    = { -1,      -1,      6,       1       },
     19 	[SchemeTagsNorm]               = { 2,       0,       0,       -1      },
     20 	[SchemeTagsSel]                = { 5,       6,       6,       -1      },
     21 	[SchemeTitleNorm]              = { 6,       -1,      -1,      -1      },
     22 	[SchemeTitleSel]               = { 6,       -1,      -1,      -1      },
     23 
     24 	[SchemeStatusNorm]             = { 6,       -1,      -1,      -1      },
     25 	[SchemeStatusAct]              = { 5,       6,       -1,      -1      },
     26 	[SchemeStatusDist]             = { 11,      0,       -1,      -1      },
     27 	[SchemeStatusNoti]             = { 0,       6,       -1,      -1      },
     28 };
     29 static char colors[][4][8]         = {
     30 	/*                                 fg       bg       border   float   */
     31 	[SchemeNorm]                   = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     32 	[SchemeSel]                    = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     33 	[SchemeTagsNorm]               = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     34 	[SchemeTagsSel]                = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     35 	[SchemeTitleNorm]              = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     36 	[SchemeTitleSel]               = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     37 
     38 	[SchemeStatusNorm]             = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     39 	[SchemeStatusAct]              = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     40 	[SchemeStatusDist]             = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     41 	[SchemeStatusNoti]             = { COL_DEF, COL_DEF, COL_DEF, COL_DEF },
     42 };
     43 
     44 /* tagging */
     45 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
     46 
     47 static const Rule rules[] = {
     48 	/* xprop(1):
     49 	 * WM_CLASS(STRING) = instance, class
     50 	 * WM_NAME(STRING) = title
     51 	 */
     52 	/* class            instance    title   tags mask   isfloating   monitor */
     53 	{ "Gimp",           NULL,       NULL,   0,          0,           -1 },
     54 	{ "tabbed",         "vimb",     NULL,   1 << 1,     0,           -1 },
     55 	{ "Brave-browser",  NULL,       NULL,   1 << 1,     0,           -1 },
     56 };
     57 
     58 /* layout(s) */
     59 static const float mfact            = 0.55; /* factor of master area size [0.05..0.95] */
     60 static const int nmaster            = 0;    /* number of clients in master area */
     61 static const int resizehints        = 0;    /* 1 means respect size hints in tiled resizals */
     62 
     63 static const Layout layouts[] = {
     64 	/* symbol     arrange function */
     65 	[LayoutGrid]                = { "\uE026\uE027",nrowgrid }, /* default */
     66 	[LayoutTiled]               = { "\uE020\uE021",tile },
     67 	[LayoutMonocle]             = { "\uE024\uE025",monocle },
     68 	[LayoutFloating]            = { "\uE022\uE023",NULL },    /* no layout function means floating behavior */
     69 };
     70 
     71 /* button definitions */
     72 /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
     73 static Button buttons[] = {
     74 	/* click            event mask      button      function        argument */
     75 	{ ClkLtSymbol,      0,              Button1,    rotatelayout,   {.i = +1 } },
     76 	{ ClkLtSymbol,      0,              Button3,    rotatelayout,   {.i = -1 } },
     77 	{ ClkClientWin,     Mod4Mask,       Button4,    rotatestack,    {.i = +1 } },
     78 	{ ClkClientWin,     Mod4Mask,       Button5,    rotatestack,    {.i = -1 } },
     79 	{ ClkWinTitle,      0,              Button2,    zoom,           {0} },
     80 	{ ClkClientWin,     Mod4Mask,       Button1,    movemouse,      {0} },
     81 	{ ClkClientWin,     Mod4Mask,       Button2,    togglefloating, {0} },
     82 	{ ClkClientWin,     Mod4Mask,       Button3,    resizemouse,    {0} },
     83 	{ ClkTagBar,        0,              Button1,    view,           {0} },
     84 	{ ClkTagBar,        0,              Button3,    toggleview,     {0} },
     85 	{ ClkTagBar,        Mod4Mask,       Button1,    tag,            {0} },
     86 	{ ClkTagBar,        Mod4Mask,       Button3,    toggletag,      {0} },
     87 };
     88 
     89 static const char *dwmfifo = "/tmp/dwm.fifo";
     90 static Command commands[] = {
     91 	{ "spawn ...",          spawn,          {.i = DispCmdLine} },
     92 	{ "quit",               quit,           {0} },
     93 	{ "toggle bar",         togglebar,      {0} },
     94 	{ "focus stack +",      focusstack,     {.i = +1} },
     95 	{ "focus stack -",      focusstack,     {.i = -1} },
     96 	{ "move stack +",       movestack,      {.i = +1} },
     97 	{ "move stack -",       movestack,      {.i = -1} },
     98 	{ "rotate stack +",     rotatestack,    {.i = +1} },
     99 	{ "rotate stack -",     rotatestack,    {.i = -1} },
    100 	{ "inc nmaster +",      incnmaster,     {.i = +1} },
    101 	{ "inc nmaster -",      incnmaster,     {.i = -1} },
    102 	{ "set mfact +",        setmfact,       {.f = +0.05} },
    103 	{ "set mfact -",        setmfact,       {.f = -0.05} },
    104 	{ "zoom",               zoom,           {0} },
    105 	{ "kill client",        killclient,     {0} },
    106 
    107 	{ "set layout grid",    setlayout,      {.v = &layouts[LayoutGrid]} },
    108 	{ "set layout tiled",   setlayout,      {.v = &layouts[LayoutTiled]} },
    109 	{ "set layout floating",setlayout,      {.v = &layouts[LayoutFloating]} },
    110 	{ "set layout monocle", setlayout,      {.v = &layouts[LayoutMonocle]} },
    111 	{ "toggle monocle",     togglelayout,   {.v = &layouts[LayoutMonocle]} },
    112 	{ "toggle layout",      setlayout,      {0} },
    113 	{ "rotate layout +",    rotatelayout,   {.i = +1} },
    114 	{ "rotate layout -",    rotatelayout,   {.i = -1} },
    115 
    116 	{ "toggle floating",    togglefloating, {0} },
    117 	{ "toggle sticky",      togglesticky,   {0} },
    118 	{ "focus mon +",        focusmon,       {.i = +1} },
    119 	{ "focus mon -",        focusmon,       {.i = -1} },
    120 	{ "tag mon +",          tagmon,         {.i = +1} },
    121 	{ "tag mon -",          tagmon,         {.i = -1} },
    122 
    123 	{ "view",               view,           {0} },
    124 	{ "view all",           view,           {.ui = ~0} },
    125 	{ "tag all",            tag,            {.ui = ~0} },
    126 	{ "view ...",           view,           {.i = DispUi} },
    127 	{ "toggle view ...",    toggleview,     {.i = DispUi} },
    128 	{ "tag ...",            tag,            {.i = DispUi} },
    129 	{ "toggle tag ...",     toggletag,      {.i = DispUi} },
    130 };