commit e1aacbe6f69b76466a152cf9f1fbcc3ce3d0e856
parent e7ca8713746b94306a5a2333d621c15f96d04404
Author: Mark Feller <mfeller@recurly.com>
Date: Sun, 26 Apr 2020 17:48:19 -0600
move keybindings to use sxhkd
Signed-off-by: Mark Feller <mfeller@recurly.com>
Diffstat:
2 files changed, 10 insertions(+), 28 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -1,21 +1,21 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const unsigned int borderpx = 2; /* border pixel of windows */
+static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int gappx = 40; /* gaps between windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 0; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "Fira Mono:size=11" };
static const char col_gray1[] = "#222222";
-static const char col_gray2[] = "#333333";
+static const char col_gray2[] = "#161819";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
-static const char col_cyan[] = "#666666";
+static const char col_border[] = "#aaaaaa";
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] = { col_gray3, col_gray1, col_gray2 },
+ [SchemeSel] = { col_gray4, col_border, col_border },
};
/* tagging */
@@ -33,7 +33,7 @@ static const Rule rules[] = {
};
/* layout(s) */
-static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
+static const float mfact = 0.4; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
@@ -57,39 +57,21 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
+static const char *termcmd[] = { "st", "-w", "''", "-e", NULL };
static const char *dmenucmd[] = { "dwm_run", NULL };
-static const char *mancmd[] = { "popup_man", NULL };
-static const char *musiccmd[] = { "popup_music", NULL };
-static const char *termcmd[] = { "tabbed", "-r", "2", "-c", "st", "-w", "''", "-e", NULL };
-static const char *surfcmd[] = { "tabbed", "-c", "surf", "-e", NULL };
static Key keys[] = {
/* modifier key function argument */
- { MODKEY, XK_space, spawn, {.v = dmenucmd } },
- { MODKEY, XK_a, spawn, {.v = mancmd } },
- { MODKEY, XK_m, spawn, {.v = musiccmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
- { MODKEY, XK_w, spawn, {.v = surfcmd } },
+
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
- { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
- { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
- { 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)
@@ -99,7 +81,6 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
diff --git a/dwm.c b/dwm.c
@@ -1578,6 +1578,7 @@ setup(void)
lrpad = drw->fonts->h;
bh = drw->fonts->h + 2;
updategeom();
+
/* init atoms */
utf8string = XInternAtom(dpy, "UTF8_STRING", False);
wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);