From a9f7c9b29fc54ca1ffa98c670491cd3c9e507f90 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 10:43:34 -0700 Subject: initial readme --- .gitignore | 1 + README | 15 +++++++++++++++ TODO.org | 8 ++------ drw.c | 6 ------ 4 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 README 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; -- cgit v1.2.3