1. mt3
  2. dwm

Commits

Stefan Bolte  committed c83da79

tagandviewmon + config.h überarbeitet

  • Participants
  • Parent commits 657a623
  • Branches default

Comments (0)

Files changed (1)

File config.h

View file
 #define MODKEY Mod1Mask
 #define TAGKEYS(KEY,TAG) \
 { MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
-{ MODKEY|ShiftMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
-{ MODKEY|ControlMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
-{ Mod4Mask|ShiftMask,      KEY,      toggletag,      {.ui = 1 << TAG} }, \
-{ Mod4Mask,             KEY,      tagandview,            {.ui = 1 << TAG} }, \
-{ Mod4Mask|ControlMask,             KEY,      tagnextmon,            {.ui = 1 << TAG} }, \
+{ MODKEY|ShiftMask,             KEY,      toggleview,     {.ui = 1 << TAG} }, \
+{ MODKEY|ControlMask,           KEY,      tag,            {.ui = 1 << TAG} }, \
+{ Mod4Mask|ShiftMask,           KEY,      toggletag,      {.ui = 1 << TAG} }, \
+{ Mod4Mask,                     KEY,      tagandview,     {.ui = 1 << TAG} }, \
+
+#define MONKEYS(KEY,TAG) \
+{ MODKEY,                       KEY,      viewmon,           {.ui = 1 << TAG} }, \
+{ MODKEY|Mod4Mask,                     KEY,      tagnextmon,        {.ui = 1 << TAG} }, \
+{ Mod4Mask,              KEY,      tagviewnextmon,    {.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 } }
     { MODKEY|Mod4Mask,             XK_space,  togglefloating, {0} },
     { MODKEY,                       XK_0,      view,           {.ui = ~0 } },
     { Mod4Mask,                     XK_0,      tag,            {.ui = ~0 } },
-    //{ MODKEY,                         XK_h,      focusmon,       {.i = -1 } },
-    //{ MODKEY,                       XK_l,      focusmon,       {.i = +1 } },
     { Mod4Mask,                       XK_space,      focusmon,       {.i = +1 } },
     { Mod4Mask,                     XK_h,      tagmon,         {.i = -1 } },
     { Mod4Mask,                     XK_l,      tagmon,         {.i = +1 } },
-    { MODKEY,                      XK_q,      viewmon,         {.ui = 1 << 0} }, 
-    { MODKEY,                      XK_w,      viewmon,         {.ui = 1 << 1} }, 
-    { MODKEY,                      XK_e,      viewmon,         {.ui = 1 << 2} }, 
-    { MODKEY,                      XK_r,      viewmon,         {.ui = 1 << 3} }, 
-    { MODKEY,                      XK_t,      viewmon,         {.ui = 1 << 4} }, 
     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)
+    MONKEYS(                        XK_q,                      0)
+    MONKEYS(                        XK_w,                      1)
+    MONKEYS(                        XK_e,                      2)
+    MONKEYS(                        XK_r,                      3)
+    MONKEYS(                        XK_t,                      4)
         { MODKEY|ShiftMask,             XK_q,      quit,           {0} },
 };