commit ec381bddd1bd0504b8c392aaad7c534293a297fe
parent 1d2b462acf1210b8f86966b8dd9bb6e36e369ee1
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Sun, 21 Jun 2020 21:50:39 +0200
Add personal configuration and gitignore
Diffstat:
3 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,3 @@
+*.o
+dmenu
+stest
diff --git a/LICENSE b/LICENSE
@@ -10,6 +10,7 @@ MIT/X Consortium License
© 2010-2012 Connor Lane Smith <cls@lubutu.com>
© 2014-2022 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2015-2019 Quentin Rameau <quinq@fifth.space>
+© 2020 Oscar Benedito <oscar@oscarbenedito.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
diff --git a/config.h b/config.h
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+/* Default settings; can be overriden by command line. */
+
+static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
+/* -fn option overrides fonts[0]; default X11 font or font set */
+static const char *fonts[] = {
+ "monospace:size=10"
+};
+static const char *prompt = NULL; /* -p option; prompt to the left of input field */
+static const char *colors[SchemeLast][2] = {
+ /* fg bg */
+ [SchemeNorm] = { "#eeeeee", "#000000" },
+ [SchemeSel] = { "#eeeeee", "#285577" },
+ [SchemeOut] = { "#000000", "#00ffff" },
+};
+/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
+static unsigned int lines = 0;
+
+/*
+ * Characters not considered part of a word while deleting words
+ * for example: " /?\"&[]"
+ */
+static const char worddelimiters[] = " ";