rebase the removal of color and just made borders 0px

This commit is contained in:
DarthMooMancer
2025-10-10 10:30:07 -04:00
parent e6c6a8d03d
commit 6436f5e824
2 changed files with 26 additions and 6 deletions
+4
View File
@@ -4,6 +4,10 @@ static const int showbar = 0;
static const int topbar = 0; static const int topbar = 0;
static const char *fonts[] = { "Cascadia Mono:style=Bold:size=10:antialias=true:autohint=true" }; static const char *fonts[] = { "Cascadia Mono:style=Bold:size=10:antialias=true:autohint=true" };
static const char *colors[][3] = {
[SchemeNorm] = { "#D3C6AA", "#272E33", "#83C092" },
[SchemeSel] = { "#374145", "#DBBC7F", "#A7C080" },
};
static const char *tags[] = { "1", "2", "3" }; static const char *tags[] = { "1", "2", "3" };
static const Rule rules[] = { static const Rule rules[] = {
+22 -6
View File
@@ -160,6 +160,7 @@ static int sendevent(Client *c, Atom proto);
static void setclientstate(Client *c, long state); static void setclientstate(Client *c, long state);
static void setfocus(Client *c); static void setfocus(Client *c);
static void setfullscreen(Client *c, int fullscreen); static void setfullscreen(Client *c, int fullscreen);
static void setmfact(const Arg *arg);
static void setup(void); static void setup(void);
static void seturgent(Client *c, int urg); static void seturgent(Client *c, int urg);
static void showhide(Client *c); static void showhide(Client *c);
@@ -383,8 +384,8 @@ cleanup(void)
cleanupmon(mons); cleanupmon(mons);
for (i = 0; i < CurLast; i++) for (i = 0; i < CurLast; i++)
drw_cur_free(drw, cursor[i]); drw_cur_free(drw, cursor[i]);
// for (i = 0; i < LENGTH(colors); i++) for (i = 0; i < LENGTH(colors); i++)
// free(scheme[i]); free(scheme[i]);
free(scheme); free(scheme);
XDestroyWindow(dpy, wmcheckwin); XDestroyWindow(dpy, wmcheckwin);
drw_free(drw); drw_free(drw);
@@ -1173,10 +1174,25 @@ setfullscreen(Client *c, int fullscreen)
} }
} }
/* arg > 1.0 will set mfact absolutely */
void
setmfact(const Arg *arg)
{
float f;
if (!arg || !selmon->lt[selmon->sellt]->arrange)
return;
f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
if (f < 0.05 || f > 0.95)
return;
selmon->mfact = f;
arrange(selmon);
}
void void
setup(void) setup(void)
{ {
// int i; int i;
XSetWindowAttributes wa; XSetWindowAttributes wa;
Atom utf8string; Atom utf8string;
struct sigaction sa; struct sigaction sa;
@@ -1221,9 +1237,9 @@ setup(void)
cursor[CurResize] = drw_cur_create(drw, XC_sizing); cursor[CurResize] = drw_cur_create(drw, XC_sizing);
cursor[CurMove] = drw_cur_create(drw, XC_fleur); cursor[CurMove] = drw_cur_create(drw, XC_fleur);
/* init appearance */ /* init appearance */
// scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
// for (i = 0; i < LENGTH(colors); i++) for (i = 0; i < LENGTH(colors); i++)
// scheme[i] = drw_scm_create(drw, colors[i], 3); scheme[i] = drw_scm_create(drw, colors[i], 3);
/* init bars */ /* init bars */
updatebars(); updatebars();
updatestatus(); updatestatus();