update dwm.c and config.h
Prithu Goswami prithugoswami524@gmail.com
Sun, 02 May 2021 17:12:43 +0530
M
config.h
→
config.h
@@ -5,21 +5,24 @@ static const unsigned int borderpx = 0; /* 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 */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; +static const char *fonts[] = { "Iosevka Icy Medium:size=10" }; +static const char dmenufont[] = "Iosevka Icy Medium:size=10"; +static const char col_gray0[] = "#000000"; 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_gray5[] = "#fe7e7e7"; +static const char col_cyan[] = "#005f87"; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeNorm] = { col_gray3, col_gray1, col_gray1 }, + [SchemeSel] = { col_gray4, col_gray0, col_gray0 }, + [SchemeTabSel] = { col_gray0, col_gray3, col_gray3 }, }; /* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; +static const char *tags[] = { "1", "2", "3", "4", "5" }; static const Rule rules[] = { /* xprop(1):@@ -75,8 +78,8 @@ { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_w, tabmode, {-1} }, { 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_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, XK_Return, zoom, {0} },@@ -104,6 +107,13 @@ TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + + + { MODKEY, XK_F2, spawn, SHCMD("toggle_touchpad")}, + { MODKEY, XK_i, spawn, SHCMD("clipmenu")}, + { MODKEY, XK_d, spawn, SHCMD("`cat .config/launcher | dmenu`")}, + { MODKEY, XK_Print, spawn, SHCMD("i3-scrot -w")}, + { MODKEY|ShiftMask, XK_Print, spawn, SHCMD("i3-scrot -s")}, }; /* button definitions */
M
dwm.c
→
dwm.c
@@ -59,7 +59,7 @@ #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
/* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeTabSel }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */@@ -868,7 +868,7 @@ if(!ISVISIBLE(c)) continue;
if(i >= m->ntabs) break; if(m->tab_widths[i] > maxsize) m->tab_widths[i] = maxsize; w = m->tab_widths[i]; - drw_setscheme(drw, scheme[(c == m->sel) ? SchemeSel : SchemeNorm]); + drw_setscheme(drw, scheme[(c == m->sel) ? SchemeTabSel : SchemeNorm]); drw_text(drw, x, 0, w, th, 0, c->name, 0); x += w; ++i;