]> git.armaanb.net Git - dwm.git/blobdiff - config.h
Use Emacs terminal instead of st
[dwm.git] / config.h
index 97cf4b0300717c48e3720be0d948d6fd60095e20..abcf147d99a1f8502aa0bfdd9650372a517d3853 100644 (file)
--- a/config.h
+++ b/config.h
@@ -6,19 +6,17 @@ static const unsigned int snap      = 32;       /* snap pixel */
 static const int showbar            = 1;        /* 0 means no bar */
 static const int topbar             = 1;        /* 0 means bottom bar */
 static const char *fonts[]          = { "JetBrainsMono Medium NF:pixelsize=14:antialias=true:autohint=true" };
-static const char col_gray1[]       = "#222222";
-static const char col_gray2[]       = "#444444";
-static const char col_gray3[]       = "#bbbbbb";
-static const char col_gray4[]       = "#eeeeee";
-static const char col_cyan[]        = "#005577";
+static const char white[]       = "#ffffff";
+static const char black[]       = "#000000";
+static const char mgray[]       = "#bbbbbb";
 static const char *colors[][3]      = {
-       /*               fg         bg         border   */
-       [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
-       [SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
+       /*               fg     bg     border   */
+       [SchemeNorm] = { black, white, mgray },
+       [SchemeSel]  = { white, black, black },
 };
 
 /* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5" };
+static const char *tags[] = { "1", "2", "3", "4" };
 
 static const Rule rules[] = {
        /* xprop(1):
@@ -26,10 +24,7 @@ static const Rule rules[] = {
         *      WM_NAME(STRING) = title
         */
        /* class     instance  title           tags mask  isfloating  monitor */
-       { "Gimp",    NULL,     NULL,           0,         1,          -1 },
-       { "Firefox", NULL,     NULL,           1 << 8,    0,          -1 },
-       { "St",      NULL,     NULL,           0,         0,          -1 },
-       { NULL,      NULL,     "Event Tester", 0,         0,          -1 }, /* xev */
+       { "St",      NULL,     "pinentry",     0,         1,          -1 },
 };
 
 /* layout(s) */
@@ -59,13 +54,12 @@ static const Layout layouts[] = {
 /* commands */
 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
 static const char *dmenucmd[] = { "dmenu_run", NULL };
-static const char *termcmd[]  = { "tmuxt" };
 
 static Key keys[] = {
        /* modifier         key        function        argument */
        { MODKEY,           XK_p,      spawn,          {.v = dmenucmd } },
        { MODKEY|ShiftMask, XK_p,      spawn,          SHCMD("passmenu") },
-       { MODKEY|ShiftMask, XK_Return, spawn,          {.v = termcmd } },
+       { MODKEY|ShiftMask, XK_Return, spawn,          EMACS("(term)") },
        { MODKEY,           XK_b,      togglebar,      {0} },
        { MODKEY,           XK_j,      focusstack,     {.i = +1 } },
        { MODKEY,           XK_k,      focusstack,     {.i = -1 } },
@@ -83,8 +77,6 @@ static Key keys[] = {
        { 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 } },
@@ -93,11 +85,8 @@ static Key keys[] = {
        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,           XK_5,      view,           {.ui = ~0 } },
+       { MODKEY|ShiftMask, XK_5,      tag,            {.ui = ~0 } },
        { MODKEY|ShiftMask, XK_q,      quit,           {0} },
        /***************************************************************/
        { MODKEY|ControlMask, XK_Return, spawn, SHCMD("emacsclient -c") },
@@ -110,6 +99,7 @@ static Key keys[] = {
        { MODKEY|ControlMask, XK_i,      spawn, SHCMD("dweb search") },
        { MODKEY|ControlMask, XK_o,      spawn, SHCMD("dweb bookmark") },
        { MODKEY|ControlMask, XK_p,      spawn, SHCMD("chorizo") },
+       { 0,                  XK_F7,     spawn, SHCMD("chorizo") },
        /***************************************************************/
        { 0,           XF86XK_AudioLowerVolume,  spawn, SHCMD("amixer sset Master 5%-; pkill -RTMIN+10 dwmblocks") },
        { 0,           XF86XK_AudioRaiseVolume,  spawn, SHCMD("amixer sset Master 5%+; pkill -RTMIN+10 dwmblocks") },
@@ -132,7 +122,6 @@ static Button buttons[] = {
        { 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,         Button1,        movemouse,      {0} },
        { ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
        { ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
@@ -143,6 +132,7 @@ static Button buttons[] = {
 };
 
 static const char *const autostart[] = {
+       "xsetroot", "-solid", "#bbbbbb", NULL,
        "dwmblocks", NULL,
        "xmodmap", "/home/armaa/.config/xmodmap", NULL,
        "xcape", NULL,