From cadadf1f1ac193811d2007b1e846bd2f5ec5f02c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 6 Jan 2023 16:33:54 +0100 Subject: change to gruvbox --- config.def.h | 12 +++++++----- dwm.c | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config.def.h b/config.def.h index 41dc3bc..3c51cfd 100644 --- a/config.def.h +++ b/config.def.h @@ -13,11 +13,11 @@ static const int barpadding = 10; static const int leftpadding = 7; static const char *fonts[] = { "SauceCodePro Nerd Font:size=10" }; static const char dmenufont[] = "SauceCodePro Nerd Font:size=10"; -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_green[] = "#547f62"; +static const char col_gray1[] = "#282828"; +static const char col_gray2[] = "#a89984"; +static const char col_gray3[] = "#ebdbb2"; +static const char col_gray4[] = "#ebdbb2"; +static const char col_green[] = "#689d6a"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, @@ -70,6 +70,7 @@ static const char *browsercmd[] = { "librewolf", NULL }; static const char *passcmd[] = { "passmenu", "--type", NULL }; static const char *mailcmd[] = { "st", "neomutt", NULL }; static const char *musiccmd[] = { "st", "cmus", NULL }; +static const char *youtubecmd[] = { "st", "ytfzf", "-t", "-s", NULL }; static const char *lockcmd[] = { "slock", NULL }; static const char *sessioncmd[] = { "powerdialog", NULL }; @@ -82,6 +83,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_e, spawn, {.v = mailcmd } }, { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } }, { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } }, + { MODKEY|ShiftMask, XK_y, spawn, {.v = youtubecmd } }, { MODKEY, XK_q, spawn, {.v = sessioncmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, diff --git a/dwm.c b/dwm.c index 28031f6..ba0ae0c 100644 --- a/dwm.c +++ b/dwm.c @@ -66,7 +66,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeBar }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ @@ -808,10 +808,12 @@ drawbar(Monitor *m) drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); drw_rect(drw, x + 2, bh - 3, w - 4, 6, 1, 1); - if (occ & 1 << i) + if (occ & 1 << i) { + drw_setscheme(drw, scheme[SchemeNorm]); drw_rect(drw, x + boxs, boxs, boxw, boxw, - m == selmon && selmon->sel && selmon->sel->tags & 1 << i, - urg & 1 << i); + m == selmon && selmon->sel && selmon->sel->tags & 1 << i, + 0); + } x += w; } w = blw = TEXTW(m->ltsymbol); @@ -820,7 +822,7 @@ drawbar(Monitor *m) if ((w = m->ww - tw - x) > bh) { if (m->sel) { - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); + drw_setscheme(drw, scheme[m == selmon ? SchemeBar : SchemeNorm]); drw_text(drw, x, 0, w - 2 * sp, bh, lrpad / 2, m->sel->name, 0); if (m->sel->isfloating) drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); -- cgit v1.2.3-54-g00ecf