summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 10:43:34 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 10:43:34 -0700
commita9f7c9b29fc54ca1ffa98c670491cd3c9e507f90 (patch)
tree5493279b7ba68c32ea664bfba2f9c508f597f24b
parent55ae285ef587942dc34c5f95b7f97037deb791a2 (diff)
initial readme
-rw-r--r--.gitignore1
-rw-r--r--README15
-rw-r--r--TODO.org8
-rw-r--r--drw.c6
4 files changed, 18 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index 9161a84..af070ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
*.o
/config.h
/TAGS
+/archive/
diff --git a/README b/README
new file mode 100644
index 0000000..05942ab
--- /dev/null
+++ b/README
@@ -0,0 +1,15 @@
+
+cmdtree
+=======
+
+cmdtree is a command launcher in the form of a trie. Commands are launch by a
+sequence of keys that form a path in this trie.
+
+Configuring cmdtree is easy (this format is still WIP):
+
+~/.cmdtreerc or ~/.config/cmdtree/cmdtreerc:
+
+(a application
+ (b chrome --force-device-scale-factor=1.25)
+ (e emacs)
+) \ No newline at end of file
diff --git a/TODO.org b/TODO.org
index 7bf26cc..ada4779 100644
--- a/TODO.org
+++ b/TODO.org
@@ -1,9 +1,5 @@
-* DONE popup window
-CLOSED: [2018-07-08 Sun 12:15]
-* DONE close window on escape
-CLOSED: [2018-07-08 Sun 12:20]
-
-* TODO draw command
+* TODO draw key as well
+* TODO command/bind different color
* TODO column layout
diff --git a/drw.c b/drw.c
index a29fbe2..2044517 100644
--- a/drw.c
+++ b/drw.c
@@ -252,13 +252,9 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
XftResult result;
int charexists = 0;
- printf("1\n");
-
if (!drw || (render && !drw->scheme) || !text || !drw->fonts)
return 0;
- printf("2\n");
-
if (!render) {
w = ~w;
} else {
@@ -271,8 +267,6 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
w -= lpad;
}
- printf("3\n");
-
usedfont = drw->fonts;
while (1) {
utf8strlen = 0;