commit e2c0cecd9e65b735c78e2453c2f455eea10afa5e
parent d46b541050b44fc664eace6f695511cbda3b581c
Author: Mark Feller <mfeller@recurly.com>
Date: Mon, 13 Apr 2020 20:38:47 -0600
move border color to config
Signed-off-by: Mark Feller <mfeller@recurly.com>
Diffstat:
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -2,13 +2,14 @@
#define CONFIG_H
#define BorderWidth 15
+#define BorderColor 240 + (240<<8) + (240<<16)
#define MOD Mod4Mask
-const char* menu[] = {"dmenu_run", 0};
-const char* term[] = {"st", 0};
-const char* surf[] = {"tabbed", "-c", "surf", "-e", 0};
-const char* music[] = {"popup", "ncmpcpp", 0};
-const char* audio[] = {"popup", "pulsemixer", 0};
+const char* menu[] = {"dmenu_run", 0};
+const char* term[] = {"st", 0};
+const char* surf[] = {"tabbed", "-c", "surf", "-e", 0};
+const char* music[] = {"popup", "ncmpcpp", 0};
+const char* audio[] = {"popup", "pulsemixer", 0};
static struct key keys[] = {
{MOD, XK_q, win_kill, {0}},
@@ -28,6 +29,7 @@ static struct key keys[] = {
{Mod1Mask, XK_Tab, win_next, {0}},
{Mod1Mask|ShiftMask, XK_Tab, win_prev, {0}},
+ {MOD, XK_Return, run, {.com = term}},
{MOD, XK_d, run, {.com = menu}},
{MOD, XK_m, run, {.com = music}},
{MOD, XK_w, run, {.com = surf}},
diff --git a/sowm.c b/sowm.c
@@ -109,7 +109,7 @@ void win_add(Window w) {
wc.border_width = BorderWidth;
XConfigureWindow(d, w, (1<<4), &wc);
- XSetWindowBorder(d, w, 240 + (240<<8) + (240<<16));
+ XSetWindowBorder(d, w, BorderColor);
if (list) {
list->prev->next = c;