d0tfiles

*nix dotfiles for arch linux setup
Log | Files | Refs | README | LICENSE

config.h (6537B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 /* appearance */
      4 static const char font[]            = "Minecraftia:size=10";
      5 static const char normbordercolor[] = "#444444";
      6 static const char normbgcolor[]     = "#222222";
      7 static const char normfgcolor[]     = "#bbbbbb";
      8 static const char selbordercolor[]  = "#005577";
      9 static const char selbgcolor[]      = "#000000";
     10 static const char selfgcolor[]      = "#eeeeee";
     11 static const unsigned int borderpx  = 1;        /* border pixel of windows */
     12 static const unsigned int gappx     = 20;        /* gaps between windows */
     13 static const unsigned int snap      = 52;      /* snap pixel */
     14 static const Bool showbar           = True;     /* False means no bar */
     15 static const Bool topbar            = True;     /* False means bottom bar */
     16 
     17 /* tagging */
     18 static const char *tags[] = { "h0me", "c0de", "w0rk", "mUsic", "chAt", "gAmez", "aRt", "sch00l", "br0wse" };
     19 
     20 static const Rule rules[] = {
     21 	/* class      instance    title       tags mask     isfloating   monitor */
     22 	{ "Gimp",     NULL,       NULL,       0,            True,        -1 },
     23 	{ "Firefox",  NULL,       NULL,       1 << 8,       False,       -1 },
     24 };
     25 
     26 /* layout(s) */
     27 static const float mfact      = 0.55; /* factor of master area size [0.05..0.95] */
     28 static const int nmaster      = 1;    /* number of clients in master area */
     29 static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
     30 
     31 static const Layout layouts[] = {
     32 	/* symbol     arrange function */
     33 	{ "[]=",      tile },    /* first entry is default */
     34 	{ "><>",      NULL },    /* no layout function means floating behavior */
     35 	{ "[M]",      monocle },
     36 };
     37 
     38 /* key definitions */
     39 #define MODKEY Mod1Mask
     40 #define TAGKEYS(KEY,TAG) \
     41 	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
     42 	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
     43 	{ MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
     44 	{ MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },
     45 
     46 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
     47 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
     48 
     49 /* commands */
     50 static const char *dmenucmd[] = { "rofi", "-show", "run", NULL };
     51 static const char *termcmd[]  = { "urxvt", NULL };
     52 static const char *firef0x[]  = { "firefox", NULL };
     53 static const char *sEtup[]    = { "urxvt","setup", NULL };
     54 
     55 
     56 
     57 
     58 # include "shiftview.c"
     59 static Key keys[] = {
     60 	/* modifier                     key        function        argument */
     61 	{ MODKEY,                       XK_space,  spawn,          {.v = dmenucmd } },
     62 	{ MODKEY,                       XK_Return, spawn,          {.v = termcmd } },
     63 	{ MODKEY,			XK_f,	   spawn,          {.v = firef0x } },
     64 	{ MODKEY,                       XK_l,	   spawn,          {.v = sEtup } },
     65 	{ MODKEY,                       XK_b,      togglebar,      {0} },
     66 	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
     67 	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
     68 	{ MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
     69 	{ MODKEY,                       XK_d,      incnmaster,     {.i = -1 } },
     70 	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
     71 	{ MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
     72 	{ MODKEY,                       XK_t,      zoom,           {0} },
     73 	{ MODKEY,                       XK_Tab,    view,           {0} },
     74 	{ MODKEY,                       XK_q,      killclient,     {0} },
     75 	{ MODKEY,                       XK_o,      setlayout,      {.v = &layouts[0]} },
     76 	{ MODKEY,                       XK_a,      setlayout,      {.v = &layouts[1]} },
     77 	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
     78 	{ MODKEY,                       XK_p,  setlayout,      {0} },
     79 	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
     80 	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
     81 	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
     82 	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
     83 	{ MODKEY,                       XK_period, focusmon,       {.i = +1 } },
     84 	{ MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
     85 	{ MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
     86 	{ MODKEY,                       XK_minus,  setgaps,        {.i = -1 } },
     87 	{ MODKEY,                       XK_equal,  setgaps,        {.i = +1 } },
     88 	{ MODKEY|ShiftMask,             XK_equal,  setgaps,        {.i = 0  } },
     89 	{ MODKEY,			XK_Left,   shiftview,      {.i = -1 } },
     90 	{ MODKEY,                       XK_Right,  shiftview,      {.i = +1 } },
     91 	TAGKEYS(                        XK_1,                      0)
     92 	TAGKEYS(                        XK_2,                      1)
     93 	TAGKEYS(                        XK_3,                      2)
     94 	TAGKEYS(                        XK_4,                      3)
     95 	TAGKEYS(                        XK_5,                      4)
     96 	TAGKEYS(                        XK_6,                      5)
     97 	TAGKEYS(                        XK_7,                      6)
     98 	TAGKEYS(                        XK_8,                      7)
     99 	TAGKEYS(                        XK_9,                      8)
    100 	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
    101 };
    102 
    103 /* button definitions */
    104 /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    105 static Button buttons[] = {
    106 	/* click                event mask      button          function        argument */
    107 	{ ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
    108 	{ ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
    109 	{ ClkWinTitle,          0,              Button2,        zoom,           {0} },
    110 	{ ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
    111 	{ ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
    112 	{ ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
    113 	{ ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
    114 	{ ClkTagBar,            0,              Button1,        view,           {0} },
    115 	{ ClkTagBar,            0,              Button3,        toggleview,     {0} },
    116 	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
    117 	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
    118 };
    119