sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0dca202bf79e29421be5ebf9d65306e3077e6068
parent 7deaf13e7b0f7502f41e030ba44666ed75184b50
Author: Evan Gates <evan.gates@gmail.com>
Date:   Thu, 29 Oct 2009 13:17:15 -0700

moved dmenu to dmenu/index and added dmenu-paste patch to dmenu/patches
Diffstat:
Rtools.suckless.org/dmenu.md -> tools.suckless.org/dmenu/index.md | 0
Atools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff | 27+++++++++++++++++++++++++++
Atools.suckless.org/dmenu/patches/paste.md | 20++++++++++++++++++++
3 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/dmenu.md b/tools.suckless.org/dmenu/index.md diff --git a/tools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff b/tools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff @@ -0,0 +1,27 @@ +diff -r f48e2b63129e dmenu.c +--- a/dmenu.c Tue Oct 27 14:38:03 2009 -0700 ++++ b/dmenu.c Thu Oct 29 13:14:21 2009 -0700 +@@ -389,6 +389,23 @@ + case XK_G: + ksym = XK_End; + break; ++ case XK_p: ++ { ++ FILE *fp; ++ char *c; ++ if(!(fp = (FILE*)popen("sselp", "r"))) ++ fprintf(stderr, "dmenu: Could not popen sselp\n"); ++ c = fgets(text + len, sizeof(text) - len, fp); ++ pclose(fp); ++ if(c == NULL) ++ return; ++ } ++ len = strlen(text); ++ if(len && text[len-1] == '\n') ++ text[--len] = '\0'; ++ match(text); ++ drawmenu(); ++ return; + } + } + switch(ksym) { diff --git a/tools.suckless.org/dmenu/patches/paste.md b/tools.suckless.org/dmenu/patches/paste.md @@ -0,0 +1,20 @@ +PASTE +===== + +Description +----------- + +This patch allows you to paste the contents of the X selection into dmenu. The +default keybindings for this is mod1+p + +The patch depends on [sselp](/sselp). + +Download +-------- + +* [dmenu-4.0-paste.diff](dmenu-4.0-paste.diff) (597) (20091029) + +Author +------ + +* Evan Gates (emg) <[evan.gates@gmail.com](mailto:evan.gates@gmail.com)>