diff options
| author | gonzo <gonzo@toniatuh.com> | 2023-05-17 22:36:30 +0200 |
|---|---|---|
| committer | gonzo <gonzo@toniatuh.com> | 2023-05-17 22:36:30 +0200 |
| commit | 8d4172ed6605739e7fcb4353130dbe50e43cf84f (patch) | |
| tree | b291c51e9c44bcc548b8d7d0ae33dae43172feed | |
| parent | 788731079849b41c6e0cb2c4baa2665aa3bc74c0 (diff) | |
| download | dwm-8d4172ed6605739e7fcb4353130dbe50e43cf84f.tar.gz | |
emacs client; screen lock; color+border
| -rw-r--r-- | config.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -4,7 +4,7 @@ #define TERMINAL "xterm" /* appearance */ -static const unsigned int borderpx = 3; /* border pixel of windows */ +static const unsigned int borderpx = 2; /* border pixel of windows */ 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 */ @@ -15,10 +15,11 @@ 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 col_yellow[] = "#dec64a"; 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_yellow, col_yellow }, }; typedef struct { @@ -74,6 +75,7 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ +static const char *eclient[] = { "emacsclient", "-c", NULL }; static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { TERMINAL, NULL }; @@ -89,9 +91,10 @@ static const Key keys[] = { { 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|ShiftMask, XK_i, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY|ShiftMask, XK_l, spawn, SHCMD("pkill -USR1 xidle") }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, //{ MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_Tab, cyclelayout, {.i = +1 } }, @@ -117,6 +120,7 @@ static const Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) + { MODKEY, XK_e, spawn, {.v = eclient} }, { MODKEY|ShiftMask, XK_e, quit, {0} }, }; |
