User:Dstamour

From Computer Science Community

Jump to: navigation, search

Darren St. Amour

[edit] GPG Key

0x60515613

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.8 (Darwin)

mQGiBEnEIWARBADrDwyArJBDLEuaVNo4lcIPhC3nVdDaYjzcdXFehYwHMTG/wH/4
WzTuCrsQzHI6q0FhAOnrzcZPKeOzkqpykuqgOJkbiWqxiZhBvOgdijp7zXIBL/HK
AHliMabLt4b9maoGGjCa+gDmZoq/ofhLfHAcFC8njFlUHoc8y/idYB87wwCgxVtX
e+xlsCSS22qVljJmK/e6ZTkD/A/yEKarZPCfpn2bWDlz48TmGcgnuKOWq8amF6o/
jPs7GCIcbPh9/Gv3jlRTYkiTL75r72QbCysx7V72YYvDW86uelA77szhfq07sACs
kpdJpfY8aoKJcBcWs7XqiJwKGE20vRHJNgM5M3EsI3fUjs5MdmlNPMekt5qvZ4OO
Qgt3A/4x/9mLB7VBFajLb4cjqLeB84ZsDuQecLKulnrO64Td6h5agJ7OWzteD5TD
9nXDHB7JVihUjwZWbcCEg8zD+sOOJlj4QV8zOf/EnEW30Kx/9sl4wM4rqBGdEOQ8
S6S8u4kz5l1tWG3fslGkw0VVrhgx7JI9RCXzN5AOb+bKQZi/M7QjRGFycmVuIFN0
LiBBbW91ciA8ZHN0YW1vdXJAbm11LmVkdT6IZgQTEQIAJgUCScQhYAIbAwUJAeEz
gAYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEDj8fFBgUVYTb68An3noOIF9m33M
ZMo9PTFSjVT4qptqAJ9NTncCnW1nDlgfwQngYWaAkoouULkEDQRJxCFgEBAAjImd
U8HrHSKtD4D9S/+jOtbGWwDU2AjN/8CoAClxacpzyhcrQaRaRzl+7kg1ySEtp8/+
QUX9yZHk9LHl7Ir5oqRIhAc1BbJkWCCFFzQB5TFCMir/QGO5F7QkwfWsh0MRCUrj
C9HEgWf9KBBkdqBTecLis/DlxSS1sybXFncCTC12+cjAN9CodJBrKsKUQcVsmD1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MeC9fUL7ihvwRbtqZPAhDFIRBSpTxA
PbWgKTkCKKEdNeoPXDweGfzD08qogUrUObQ/l700Nl0smdWgQOVsF3gWMje3Cm7W
0q7Jag/kPY7Tg+L1EEgnBpULiE8EGBECAA8FAknEIWACGwwFCQHhM4AACgkQOPx8
UGBRVhOpVgCePqvFutZt1I6FijfUqTMf/4jh3ZgAnjR11EbVZ72ZW/3J5dFDs5kq
PlWY
=kxNe
-----END PGP PUBLIC KEY BLOCK-----


[edit] dwm config

/* See LICENSE file for copyright and license details. */

/* appearance */
//static const char font[]            = "-*-terminus-*-*-*-*-*-*-*-*-*-*-*-*";
static const char font[]            = "-*-profont-medium-*-normal-*-11-*-72-72-*-*-iso8859-1";


static const char normbordercolor[] = "#202020"; // Window
static const char selbordercolor[]  = "#505050"; // Window

static const char normbgcolor[]     = "#333333";
static const char normfgcolor[]     = "#dddddd";
static const char selbgcolor[]      = "#333333";
static const char selfgcolor[]      = "#ffffff";

static const unsigned int borderpx  = 1;        /* border pixel of windows */
static const unsigned int snap      = 32;       /* snap pixel */
static const Bool showbar           = True;     /* False means no bar */
static const Bool topbar            = True;     /* False means bottom bar */

/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9"};

static const Rule rules[] = {
	/* class      instance    title       tags mask     isfloating   monitor */
    { NULL,         NULL,       NULL,       0,           False,       -1 },
};

/* layout(s) */
static const float mfact      = 0.50; /* factor of master area size [0.05..0.95] */
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */

static const Layout layouts[] = {
	/* symbol     arrange function */
	{ "T",      tile },    /* first entry is default */
	{ "F",      NULL },    /* no layout function means floating behavior */
	{ "M",      monocle },
};

/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
	{ MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

/* commands */
static const char *dmenucmd[] =   { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[]  =   { "urxvt",      NULL };
static const char *browsercmd[] = { "chromium", "--enable-ipv6", NULL };
static const char *lockcmd[] = { "slock", NULL };
static const char *volupcmd[] = { "amixer", "set", "Master", "4%+", NULL };
static const char *voldowncmd[] = { "amixer", "set", "Master", "4%-", NULL };
static const char *wifiupcmd[] = { "sudo",  "/etc/init.d/net.wlan0", "start", NULL};
static const char *wifidowncmd[] = { "/usr/bin/sudo", "/etc/init.d/net.wlan0", "stop", NULL};
static const char *etherupcmd[] = { "/usr/bin/sudo", "/etc/init.d/net.eth0", "start", NULL};
static const char *etherdowncmd[] = { "/usr/bin/sudo", "/etc/init.d/net.eth0", "stop", NULL};

static Key keys[] = {
	/* modifier                     key        function        argument */
    { 0,                            0x1008ff13, spawn, {.v = volupcmd } },
    { 0,                            0x1008ff11, spawn, {.v = voldowncmd } },
    { MODKEY,                       XK_p,      spawn,          {.v = dmenucmd} }, 
	{ MODKEY,                       XK_a,      spawn,          {.v = termcmd } },
	{ MODKEY,                       XK_f,      spawn,          {.v = browsercmd } },
    { MODKEY|ShiftMask,             XK_l,      spawn,          {.v = lockcmd } },
    { MODKEY,                       XK_u,      spawn,          {.v = wifiupcmd } },
    { MODKEY,                       XK_d,      spawn,          {.v = wifidowncmd } },
    { MODKEY|ShiftMask,             XK_u,      spawn,          {.v = etherupcmd } },
    { MODKEY|ShiftMask,             XK_d,      spawn,          {.v = etherdowncmd } },
	{ MODKEY|ShiftMask,             XK_Tab,    focusstack,     {.i = +1 } },
	{ MODKEY,                       XK_Tab,    focusstack,     {.i = -1 } },
	{ MODKEY,                       XK_b,      togglebar,      {0} },
	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
	{ MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
	{ MODKEY,                       XK_Return, zoom,           {0} },
	{ MODKEY,                       XK_w,      killclient,     {0} },
	{ MODKEY,                       XK_t,      setlayout,      {.v = &layouts[0]} },
	{ MODKEY,                       XK_n,      setlayout,      {.v = &layouts[1]} },
	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
	{ MODKEY,                       XK_space,  setlayout,      {0} },
	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
	{ MODKEY,                       XK_period, focusmon,       {.i = +1 } },
	{ MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
	{ MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
	TAGKEYS(                        XK_1,                      0)
	TAGKEYS(                        XK_2,                      1)
	TAGKEYS(                        XK_3,                      2)
	TAGKEYS(                        XK_4,                      3)
	TAGKEYS(                        XK_5,                      4)
	TAGKEYS(                        XK_6,                      5)
	TAGKEYS(                        XK_7,                      6)
	TAGKEYS(                        XK_8,                      7)
	TAGKEYS(                        XK_9,                      8)
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
};

/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
	/* click                event mask      button          function        argument */
	{ ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
	{ ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
	{ ClkWinTitle,          0,              Button2,        zoom,           {0} },
	//{ ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
	{ ClkClientWin,         MODKEY,         Button3,        movemouse,      {0} },
	{ ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
	//{ ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
	{ ClkTagBar,            0,              Button1,        view,           {0} },
	{ ClkTagBar,            0,              Button3,        toggleview,     {0} },
	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
};
Personal tools
services