From 5cdd3b25d618736c7a7f120c26e0479664eec3e4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 29 Jul 2023 01:45:41 +0200 Subject: [PATCH] Update borders Fix semi transparent borders Change active window border color --- config.h | 5 +++-- drw.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index e86a710..d962e32 100644 --- a/config.h +++ b/config.h @@ -18,7 +18,7 @@ #define XF86Launch1 0x1008ff41 /* appearance */ -static const unsigned int borderpx = 0; /* border pixel of windows */ +static const unsigned int borderpx = 4; /* border pixel of windows */ static const unsigned int gappx = 5; /* gaps between windows */ static const unsigned int snap = 32; /* snap pixel */ static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ @@ -35,10 +35,11 @@ static const char col_gray2[] = "#303030"; static const char col_gray3[] = "#424242"; static const char col_gray4[] = "#b1b1b1"; static const char col_gray5[] = "#c0c0c0"; +static const char col_border[] = "#0D47A1"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray4, col_gray0, col_gray1 }, - [SchemeSel] = { col_gray4, col_gray2, col_gray3 }, + [SchemeSel] = { col_gray4, col_gray2, col_border }, }; /* tagging */ diff --git a/drw.c b/drw.c index 75b94c0..a0447a8 100644 --- a/drw.c +++ b/drw.c @@ -204,6 +204,7 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname) DefaultColormap(drw->dpy, drw->screen), clrname, dest)) die("error, cannot allocate color '%s'", clrname); + dest->pixel |= 0xff << 24; } /* Wrapper to create color schemes. The caller has to call free(3) on the