First Upload, Welcome to gitea
This commit is contained in:
commit
b77a83a1c6
84 changed files with 13843 additions and 0 deletions
59
dwm/patches/1-rainbowtags.patch
Normal file
59
dwm/patches/1-rainbowtags.patch
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
diff --git a/config.def.h b/config.def.h
|
||||
index 1c0b587..3fb5cf8 100644
|
||||
--- a/config.def.h
|
||||
+++ b/config.def.h
|
||||
@@ -21,6 +21,18 @@ static const char *colors[][3] = {
|
||||
/* tagging */
|
||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
|
||||
+static const char *tagsel[][2] = {
|
||||
+ { "#ffffff", "#ff0000" },
|
||||
+ { "#ffffff", "#ff7f00" },
|
||||
+ { "#000000", "#ffff00" },
|
||||
+ { "#000000", "#00ff00" },
|
||||
+ { "#ffffff", "#0000ff" },
|
||||
+ { "#ffffff", "#4b0082" },
|
||||
+ { "#ffffff", "#9400d3" },
|
||||
+ { "#000000", "#ffffff" },
|
||||
+ { "#ffffff", "#000000" },
|
||||
+};
|
||||
+
|
||||
static const Rule rules[] = {
|
||||
/* xprop(1):
|
||||
* WM_CLASS(STRING) = instance, class
|
||||
diff --git a/dwm.c b/dwm.c
|
||||
index b0b3466..c16d5f5 100644
|
||||
--- a/dwm.c
|
||||
+++ b/dwm.c
|
||||
@@ -264,6 +264,7 @@ static Atom wmatom[WMLast], netatom[NetLast];
|
||||
static int running = 1;
|
||||
static Cur *cursor[CurLast];
|
||||
static Clr **scheme;
|
||||
+static Clr **tagscheme;
|
||||
static Display *dpy;
|
||||
static Drw *drw;
|
||||
static Monitor *mons, *selmon;
|
||||
@@ -717,7 +718,7 @@ drawbar(Monitor *m)
|
||||
x = 0;
|
||||
for (i = 0; i < LENGTH(tags); i++) {
|
||||
w = TEXTW(tags[i]);
|
||||
- drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
||||
+ drw_setscheme(drw, (m->tagset[m->seltags] & 1 << i ? tagscheme[i] : scheme[SchemeNorm]));
|
||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
||||
if (occ & 1 << i)
|
||||
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
||||
@@ -1568,9 +1569,14 @@ setup(void)
|
||||
cursor[CurResize] = drw_cur_create(drw, XC_sizing);
|
||||
cursor[CurMove] = drw_cur_create(drw, XC_fleur);
|
||||
/* init appearance */
|
||||
+ if (LENGTH(tags) > LENGTH(tagsel))
|
||||
+ die("too few color schemes for the tags");
|
||||
scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
|
||||
for (i = 0; i < LENGTH(colors); i++)
|
||||
scheme[i] = drw_scm_create(drw, colors[i], 3);
|
||||
+ tagscheme = ecalloc(LENGTH(tagsel), sizeof(Clr *));
|
||||
+ for (i = 0; i < LENGTH(tagsel); i++)
|
||||
+ tagscheme[i] = drw_scm_create(drw, tagsel[i], 2);
|
||||
/* init bars */
|
||||
updatebars();
|
||||
updatestatus();
|
||||
74
dwm/patches/2-custom.patch
Normal file
74
dwm/patches/2-custom.patch
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
diff --git a/config.def.h b/config.def.h
|
||||
--- a/config.def.h 2022-12-03 23:02:59.820577756 +0200
|
||||
+++ b/config.def.h 2022-12-03 23:15:09.844816736 +0200
|
||||
@@ -5,32 +5,37 @@
|
||||
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 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 *fonts[] = { "terminus:size=10" };
|
||||
+static const char dmenufont[] = "terminus:size=8";
|
||||
+static const char col_gray1[] = "#222222";
|
||||
+static const char col_gray2[] = "#1c1c1c";
|
||||
+static const char col_gray3[] = "#403f3f";
|
||||
+static const char col_gray4[] = "#666560";
|
||||
+static const char col_dmenu1[] = "#FD7717";
|
||||
+static const char col_dmenu2[] = "#ffffff";
|
||||
+static const char col_dmenu3[] = "#ffffff";
|
||||
+static const char col_cyan[] = "#222222";
|
||||
static const char *colors[][3] = {
|
||||
/* fg bg border */
|
||||
- [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
||||
- [SchemeSel] = { col_gray4, col_cyan, col_cyan },
|
||||
+ [SchemeNorm] = { col_dmenu2, col_cyan, col_cyan },
|
||||
+ [SchemeSel] = { col_dmenu2, col_cyan, col_dmenu2 },
|
||||
};
|
||||
|
||||
/* tagging */
|
||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
|
||||
static const char *tagsel[][2] = {
|
||||
- { "#ffffff", "#ff0000" },
|
||||
- { "#ffffff", "#ff7f00" },
|
||||
- { "#000000", "#ffff00" },
|
||||
- { "#000000", "#00ff00" },
|
||||
- { "#ffffff", "#0000ff" },
|
||||
- { "#ffffff", "#4b0082" },
|
||||
- { "#ffffff", "#9400d3" },
|
||||
- { "#000000", "#ffffff" },
|
||||
- { "#ffffff", "#000000" },
|
||||
+ { "#ffffff", "#fd7717" },
|
||||
+ { "#ffffff", "#fd7718" },
|
||||
+ { "#ffffff", "#fd7719" },
|
||||
+ { "#ffffff", "#fd7720" },
|
||||
+ { "#ffffff", "#fd7721" },
|
||||
+ { "#ffffff", "#fd7722" },
|
||||
+ { "#ffffff", "#fd7723" },
|
||||
+ { "#ffffff", "#fd7724" },
|
||||
+ { "#ffffff", "#fd7725" },
|
||||
};
|
||||
|
||||
static const Rule rules[] = {
|
||||
@@ -69,13 +74,60 @@
|
||||
|
||||
/* commands */
|
||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||
-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||
+static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_dmenu2, "-sb", col_dmenu1, "-sf", col_dmenu2, NULL };
|
||||
static const char *termcmd[] = { "st", NULL };
|
||||
+static const char *takess[] = { "speedwm-screenshotutil -s -f 5", NULL };
|
||||
|
||||
static Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||
+ { MODKEY|ShiftMask, XK_s, spawn, { .v = takess } },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
Loading…
Add table
Add a link
Reference in a new issue