summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-01-06 11:26:29 +0100
committerjonsykkel <jonrevold@gmail.com>2021-01-06 11:26:29 +0100
commit75f3a55287c157b3dbafcc9ee97b82a4977f9438 (patch)
tree15f88a867fc59ea8adc7ae638e9343878017dfb4
parentfca4498f289fc5027c612f103ed96c65f98f75f2 (diff)
downloaddwm-75f3a55287c157b3dbafcc9ee97b82a4977f9438.tar.gz
fixes
-rw-r--r--config.h44
-rw-r--r--dwm.c1
2 files changed, 20 insertions, 25 deletions
diff --git a/config.h b/config.h
index de85827..0944790 100644
--- a/config.h
+++ b/config.h
@@ -6,36 +6,20 @@ 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 */
static const int focusonwheel = 0;
-static const char *fonts[] = { "xos4 Terminus:pixelsize=16:antialias=false" };
-static const char dmenufont[] = "xos4 Terminus:pixelsize=16:antialias=false";
-static const char col_gray1[] = "#222222";
-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_black[] = "#000000";
-static const char col_red[] = "#ff0000";
-static const char col_yellow[] = "#ffff00";
-static const char col_green[] = "#00ff00";
-static const char col_white[] = "#ffffff";
+static const char font[] = "xos4 Terminus:pixelsize=16:antialias=false";
static const char col_normfg[] = "#6f6f6f";
static const char col_normbg[] = "#171717";
static const char col_selfg[] = "#979797";
static const char col_selbg[] = "#2e2e2e";
static const char *colors[][3] = {
- /* fg bg border */
-// [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
-// [SchemeSel] = { col_gray4, col_cyan, col_cyan },
-// [SchemeWarn] = { col_yellow, col_gray1, col_gray2 },
-// [SchemeUrgent] = { col_red, col_gray1, col_gray2 },
-// [SchemeOke] = { col_green, col_gray1, col_gray2 },
- [SchemeNorm] = { col_normfg, col_normbg, col_normbg },
- [SchemeSel] = { col_selfg, col_selbg, col_selbg },
- [SchemeWarn] = { col_yellow, col_normbg, col_normbg },
- [SchemeUrgent] = { col_red, col_normbg, col_normbg },
- [SchemeOke] = { col_green, col_normbg, col_normbg },
+ /* fg bg border */
+ [SchemeNorm] = { col_normfg, col_normbg, col_normbg },
+ [SchemeSel] = { col_selfg, col_selbg, col_selbg },
+ [SchemeWarn] = { "#ffff00", col_normbg, col_normbg },
+ [SchemeUrgent] = { "#ff0000", col_normbg, col_normbg },
+ [SchemeOke] = { "#00ff00", col_normbg, col_normbg },
};
/* tagging */
@@ -48,7 +32,7 @@ static const Rule rules[] = {
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ { "Firefox", NULL, NULL, 1 << 2, 0, -1 },
};
/* layout(s) */
@@ -76,7 +60,17 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
+static const char *dmenucmd[] = {
+ "dmenu_run",
+ "-m", dmenumon,
+ "-fn", font,
+ "-nb", col_normbg,
+ "-nf", col_normfg,
+ "-sb", col_selbg,
+ "-sf", col_selfg,
+ NULL
+};
+
static const char *termcmd[] = { "st", NULL };
static Key keys[] = {
diff --git a/dwm.c b/dwm.c
index c1d98f5..c05a21c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1618,6 +1618,7 @@ setup(void)
sh = DisplayHeight(dpy, screen);
root = RootWindow(dpy, screen);
drw = drw_create(dpy, screen, root, sw, sh);
+ static const char *fonts[] = { font };
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
lrpad = drw->fonts->h;