aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2022-01-31 17:07:46 +0100
committerÖzgür Kesim <oec@codeblau.de>2022-01-31 17:07:46 +0100
commit15739277f5fddcf74ad4824e4d667bced0deba41 (patch)
treeba9c98154c0148b0a369bdae269607ce5d50a4e2 /config.def.h
parent6225e0c4c1342d4b1610d3d46599260af2e17e8b (diff)
stackpos appliedHEADmy_dwm
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h
index 5a9fea8..77f12f0 100644
--- a/config.def.h
+++ b/config.def.h
@@ -26,7 +26,7 @@ static const char *colors[][3] = {
};
/* tagging */
-static const char *tags[] = { "1 com", "2 taler", "3", "4", "5", "6", "7", "8", "9" };
+static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* xprop(1):
@@ -37,8 +37,8 @@ static const Rule rules[] = {
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Alacritty", NULL, "pamix", 0, 1, -1 },
{ "Alacritty", NULL, "ncmpcpp", 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
- { "Google-chrome", NULL, NULL, 1 << 8, 0, -1 },
+ // { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ // { "Google-chrome", NULL, NULL, 1 << 8, 0, -1 },
};
/* layout(s) */
@@ -55,8 +55,8 @@ static const Layout layouts[] = {
{ "[M]", monocle },
{ "|M|", centeredmaster },
{ ">M>", centeredfloatingmaster },
- { "[@]", spiral },
- { "[\\]", dwindle },
+ { "[@]", spiral },
+ { "[\\]", dwindle },
};
/* key definitions */
@@ -66,6 +66,14 @@ static const Layout layouts[] = {
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
+#define STACKKEYS(MOD,ACTION) \
+ { MOD, XK_j, ACTION##stack, {.i = INC(+1) } }, \
+ { MOD, XK_k, ACTION##stack, {.i = INC(-1) } }, \
+ { MOD, XK_grave, ACTION##stack, {.i = PREVSEL } }, \
+ { MOD, XK_q, ACTION##stack, {.i = 0 } }, \
+ { MOD, XK_a, ACTION##stack, {.i = 1 } }, \
+ { MOD, XK_z, ACTION##stack, {.i = 2 } }, \
+ { MOD, XK_x, ACTION##stack, {.i = -1 } },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
@@ -92,8 +100,8 @@ static Key keys[] = {
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = -1 } },
- { MODKEY, XK_k, focusstack, {.i = +1 } },
+ STACKKEYS(MODKEY, focus)
+ STACKKEYS(MODKEY|ShiftMask, push)
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
@@ -129,8 +137,8 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
- /* see <X11/XF86keysym.h> */
+ { MODKEY|ShiftMask, XK_BackSpace, quit, {0} },
+ /* see <X11/XF86keysym.h> */
{ 0, 0x1008FF02,spawn, {.v = brightup} },
{ 0, 0x1008FF03,spawn, {.v = brightdown} },
{ 0, 0x1008FF11,spawn, {.v = audiodown} },