Added `findemacs` function to focus an emacs frame.
[dwm.git] / config.def.h
index 88ca344..4e21b76 100644 (file)
@@ -52,8 +52,6 @@ static const Layout layouts[] = {
 static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
 static const char *termcmd[]  = { "x-terminal-emulator", NULL };
 static const char *lockcmd[]  = { "slock", NULL };
-static const char *emacscmd[] = { "emacs", NULL };
-static const char *torcmd[]   = { "torbrowser", NULL};
 static const char *sshadd[]   = { "ssh-add-x", NULL}; /* add .ssh/id_rsa to the ssh agent */
 /* run rsync on the server's maildir. Run ssh-add before doing this.*/
 static const char *getmail[]   = { "/home/gpcf/software/mail/getmail.sh", NULL}; 
@@ -66,9 +64,8 @@ static Key keys[] = {
        { MODKEY,                       XK_s,      spawn,          {.v = sendmail} },
        { MODKEY,                       XK_g,      spawn,          {.v = getmail} },
        { MODKEY,                       XK_x,      spawn,          {.v = dmenucmd } },
-       { MODKEY,                       XK_n,      spawn,          {.v = torcmd} },
        { MODKEY|ShiftMask,             XK_l,      spawn,          {.v = lockcmd } },
-       { MODKEY,                       XK_e,      spawn,          {.v = emacscmd} },
+       { MODKEY,                       XK_e,      findemacs,      {0} },
        { MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
        { MODKEY,                       XK_b,      togglebar,      {0} },
        { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
@@ -91,6 +88,7 @@ static Key keys[] = {
        { MODKEY,                       XK_period, focusmon,       {.i = +1 } },
        { MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
        { MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
+       { MODKEY,                       XK_w,      list_clients,   {0} },
        TAGKEYS(                        XK_1,                      0)
        TAGKEYS(                        XK_2,                      1)
        TAGKEYS(                        XK_3,                      2)