sites

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

commit 1511661685873d8bd13f8f1e5ccf76a9ebba092a
parent 31d0d866c036cd44e06c4a4e5a05f871ab98e10b
Author: Matthew Bauer <mjbauer95@gmail.com>
Date:   Tue,  6 Jul 2010 18:42:21 -0500

added a tip version for paste in dmenu patches; because the original did not work for me
Diffstat:
Atools.suckless.org/dmenu/patches/dmenu-tip-paste.diff | 27+++++++++++++++++++++++++++
Mtools.suckless.org/dmenu/patches/paste.md | 1+
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/dmenu-tip-paste.diff b/tools.suckless.org/dmenu/patches/dmenu-tip-paste.diff @@ -0,0 +1,27 @@ +diff -r 67d8f41d51d7 dmenu.c +--- a/dmenu.c Fri Jul 02 06:49:05 2010 +0100 ++++ b/dmenu.c Tue Jul 06 18:38:42 2010 -0500 +@@ -254,6 +254,23 @@ + text[++i] = '\0'; + match(); + 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(); ++ drawbar(); ++ return; + } + } + switch(ksym) { diff --git a/tools.suckless.org/dmenu/patches/paste.md b/tools.suckless.org/dmenu/patches/paste.md @@ -13,6 +13,7 @@ Download -------- * [dmenu-4.0-paste.diff](dmenu-4.0-paste.diff) (597) (20091029) +* [dmenu-tip-paste.diff](dmenu-tip-paste.diff) (594) (20100706) Author ------