added st source

This commit is contained in:
2023-02-25 22:33:44 +01:00
parent 14b4224f9f
commit b4acc30aa0
78 changed files with 14879 additions and 0 deletions

21
dwm/.st/patch/invert.c Normal file
View File

@@ -0,0 +1,21 @@
static int invertcolors = 0;
void
invert(const Arg *dummy)
{
invertcolors = !invertcolors;
redraw();
}
Color
invertedcolor(Color *clr)
{
XRenderColor rc;
Color inverted;
rc.red = ~clr->color.red;
rc.green = ~clr->color.green;
rc.blue = ~clr->color.blue;
rc.alpha = clr->color.alpha;
XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &rc, &inverted);
return inverted;
}