summaryrefslogtreecommitdiff
path: root/dwm/patch/xresources.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwm/patch/xresources.h')
-rwxr-xr-xdwm/patch/xresources.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/dwm/patch/xresources.h b/dwm/patch/xresources.h
new file mode 100755
index 0000000..b06e194
--- /dev/null
+++ b/dwm/patch/xresources.h
@@ -0,0 +1,18 @@
+#include <X11/Xresource.h>
+
+/* Xresources preferences */
+enum resource_type {
+ STRING = 0,
+ INTEGER = 1,
+ FLOAT = 2
+};
+
+typedef struct {
+ char *name;
+ enum resource_type type;
+ void *dst;
+} ResourcePref;
+
+static void load_xresources(void);
+static void resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst);
+static void xrdb(const Arg *arg);