diff options
author | sinanmohd <pcmsinan@gmail.com> | 2021-11-15 15:41:47 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-11 18:39:55 +0530 |
commit | fb8e23bff58678072618c3b36acceed7be7fdf6d (patch) | |
tree | 35523c3b646dd63a727391e85a1fa1e97f885bf5 | |
parent | a293eb42b73c274ef9f6191250e37dd7d15524df (diff) |
added titlecolor patch
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | config.def.h | 7 | ||||
-rw-r--r-- | dwm.c | 4 |
3 files changed, 7 insertions, 5 deletions
@@ -7,3 +7,4 @@ dwm is an extremely fast, small, and dynamic window manager for X. - [fullgaps](https://dwm.suckless.org/patches/fullgaps/dwm-fullgaps-20200508-7b77734.diff). enable gaps between windows - [swallow](https://dwm.suckless.org/patches/swallow/dwm-swallow-20201211-61bb8b2.diff). enable window swallowing - [xrdb](https://dwm.suckless.org/patches/xrdb/dwm-xrdb-6.2.diff). allows dwm to read colors from xrdb +- [titlecolor](https://dwm.suckless.org/patches/titlecolor/dwm-titlecolor-20210815-ed3ab6b4.diff). adds a new color scheme used by the window title in the bar diff --git a/config.def.h b/config.def.h index 8dff016..af69dee 100644 --- a/config.def.h +++ b/config.def.h @@ -16,9 +16,10 @@ static char selfgcolor[] = "#eeeeee"; static char selbordercolor[] = "#005577"; static char selbgcolor[] = "#005577"; static char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, - [SchemeSel] = { selfgcolor, selbgcolor, selbordercolor }, + /* fg bg border */ + [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, + [SchemeSel] = { selfgcolor, selbgcolor, selbordercolor }, + [SchemeTitle] = { normfgcolor, normbgcolor, normbordercolor }, }; /* tagging */ @@ -81,7 +81,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeTitle }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ @@ -828,7 +828,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 ? SchemeTitle : SchemeNorm]); drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); if (m->sel->isfloating) drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); |