From a6815bc2f1a4c4e95f94e0ae95862ee46b5d33da Mon Sep 17 00:00:00 2001
From: HawksLegal <124011802+HawksLegal@users.noreply.github.com>
Date: Wed, 5 Apr 2023 17:12:41 +0000
Subject: Update larbs.mom

It does not appear that you still have whatever command XK_Insert was set to in your dwm when you wrote this.
---
 larbs.mom | 2 --
 1 file changed, 2 deletions(-)

diff --git a/larbs.mom b/larbs.mom
index 5015ecd..f3b9b75 100644
--- a/larbs.mom
+++ b/larbs.mom
@@ -224,8 +224,6 @@ There are nine tags, active tags are highlighted in the top left.
 \f(CWMod+F12\fP \(en Rerun keyboard mapping scripts if new keyboard is attached
 .ITEM
 \f(CWMod+`\fP \(en Select an emoji to copy to clipboard
-.ITEM
-\f(CWMod+Insert\fP \(en Show contents of clipboard/primary selection
 .LIST OFF
 .HEADING 2 "Audio"
 .PP
-- 
cgit v1.2.3


From e597dbabbdc4be56d19628177dbdb236f505153f Mon Sep 17 00:00:00 2001
From: HawksLegal <124011802+HawksLegal@users.noreply.github.com>
Date: Wed, 5 Apr 2023 17:24:37 +0000
Subject: Update larbs.mom

---
 larbs.mom | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/larbs.mom b/larbs.mom
index f3b9b75..999ce1c 100644
--- a/larbs.mom
+++ b/larbs.mom
@@ -224,6 +224,8 @@ There are nine tags, active tags are highlighted in the top left.
 \f(CWMod+F12\fP \(en Rerun keyboard mapping scripts if new keyboard is attached
 .ITEM
 \f(CWMod+`\fP \(en Select an emoji to copy to clipboard
+.ITEM
+\f(CWMod+Insert\fP \(en Pastes text you have saved in a file at ~/.local/share/larbs/snippets
 .LIST OFF
 .HEADING 2 "Audio"
 .PP
-- 
cgit v1.2.3


From 8bff8140e72c180c2655355e6161f2f4e6991b2d Mon Sep 17 00:00:00 2001
From: speedie <speedie@duck.com>
Date: Thu, 15 Jun 2023 23:23:48 +0200
Subject: Remove old `xrdb` patch, which does not need to be used alongside the
 .Xresources patch.

---
 dwm.c | 67 ++++++++-----------------------------------------------------------
 1 file changed, 8 insertions(+), 59 deletions(-)

diff --git a/dwm.c b/dwm.c
index 3c0afbf..9308af9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -68,21 +68,6 @@
 #define SPTAG(i)		((1 << LENGTH(tags)) << (i))
 #define SPTAGMASK		(((1 << LENGTH(scratchpads))-1) << LENGTH(tags))
 #define TEXTW(X)                (drw_fontset_getwidth(drw, (X)) + lrpad)
-#define XRDB_LOAD_COLOR(R,V)    if (XrmGetResource(xrdb, R, NULL, &type, &value) == True) { \
-                                  if (value.addr != NULL && strnlen(value.addr, 8) == 7 && value.addr[0] == '#') { \
-                                    int i = 1; \
-                                    for (; i <= 6; i++) { \
-                                      if (value.addr[i] < 48) break; \
-                                      if (value.addr[i] > 57 && value.addr[i] < 65) break; \
-                                      if (value.addr[i] > 70 && value.addr[i] < 97) break; \
-                                      if (value.addr[i] > 102) break; \
-                                    } \
-                                    if (i == 7) { \
-                                      strncpy(V, value.addr, 7); \
-                                      V[7] = '\0'; \
-                                    } \
-                                  } \
-                                }
 #define TRUNC(X,A,B)            (MAX((A), MIN((X), (B))))
 
 /* enums */
@@ -228,7 +213,6 @@ static void grabkeys(void);
 static void incnmaster(const Arg *arg);
 static void keypress(XEvent *e);
 static void killclient(const Arg *arg);
-static void loadxrdb(void);
 static void manage(Window w, XWindowAttributes *wa);
 static void mappingnotify(XEvent *e);
 static void maprequest(XEvent *e);
@@ -296,8 +280,8 @@ static Monitor *wintomon(Window w);
 static int xerror(Display *dpy, XErrorEvent *ee);
 static int xerrordummy(Display *dpy, XErrorEvent *ee);
 static int xerrorstart(Display *dpy, XErrorEvent *ee);
-static void xrdb(const Arg *arg);
 static void zoom(const Arg *arg);
+static void xrdb(const Arg *arg);
 static void load_xresources(void);
 static void resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst);
 
@@ -1223,37 +1207,6 @@ killclient(const Arg *arg)
 	}
 }
 
-void
-loadxrdb()
-{
-  Display *display;
-  char * resm;
-  XrmDatabase xrdb;
-  char *type;
-  XrmValue value;
-
-  display = XOpenDisplay(NULL);
-
-  if (display != NULL) {
-    resm = XResourceManagerString(display);
-
-    if (resm != NULL) {
-      xrdb = XrmGetStringDatabase(resm);
-
-      if (xrdb != NULL) {
-        XRDB_LOAD_COLOR("dwm.color0", normbordercolor);
-        XRDB_LOAD_COLOR("dwm.color0", normbgcolor);
-        XRDB_LOAD_COLOR("dwm.color4", normfgcolor);
-        XRDB_LOAD_COLOR("dwm.color8", selbordercolor);
-        XRDB_LOAD_COLOR("dwm.color4", selbgcolor);
-        XRDB_LOAD_COLOR("dwm.color0", selfgcolor);
-      }
-    }
-  }
-
-  XCloseDisplay(display);
-}
-
 void
 manage(Window w, XWindowAttributes *wa)
 {
@@ -2623,17 +2576,6 @@ xerrorstart(Display *dpy, XErrorEvent *ee)
 	return -1;
 }
 
-void
-xrdb(const Arg *arg)
-{
-  loadxrdb();
-  int i;
-  for (i = 0; i < LENGTH(colors); i++)
-                scheme[i] = drw_scm_create(drw, colors[i], 3);
-  focus(NULL);
-  arrange(NULL);
-}
-
 void
 zoom(const Arg *arg)
 {
@@ -2646,6 +2588,13 @@ zoom(const Arg *arg)
 	pop(c);
 }
 
+void
+xrdb(const Arg *arg)
+{
+    load_xresources();
+    setup();
+}
+
 void
 resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst)
 {
-- 
cgit v1.2.3


From b9938cb25f0daedb23f92408e2afb7a7968b663b Mon Sep 17 00:00:00 2001
From: speedie <speedie@duck.com>
Date: Thu, 15 Jun 2023 23:28:39 +0200
Subject: No need to call setup() multiple times

---
 dwm.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dwm.c b/dwm.c
index 9308af9..1ce854c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2592,7 +2592,12 @@ void
 xrdb(const Arg *arg)
 {
     load_xresources();
-    setup();
+
+    for (int i = 0; i < LENGTH(colors); i++)
+        scheme[i] = drw_scm_create(drw, colors[i], 3);
+
+    focus(NULL);
+    arrange(NULL);
 }
 
 void
-- 
cgit v1.2.3