[wiki] [sites] wiki updated
changeset: 581:42526ff133d0
tag: tip
user: Matthew Bauer <mjbauer95_AT_gmail.com>
date: Tue Jul 06 18:42:21 2010 -0500
files: tools.suckless.org/dmenu/patches/dmenu-tip-paste.diff tools.suckless.org/dmenu/patches/paste.md
description:
added a tip version for paste in dmenu patches; because the original did not work for me
diff -r fc0f456e6f89 -r 42526ff133d0 tools.suckless.org/dmenu/patches/dmenu-tip-paste.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/dmenu-tip-paste.diff Tue Jul 06 18:42:21 2010 -0500
_AT_@ -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
+_AT_@ -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 -r fc0f456e6f89 -r 42526ff133d0 tools.suckless.org/dmenu/patches/paste.md
--- a/tools.suckless.org/dmenu/patches/paste.md Mon Jul 05 22:21:50 2010 -0500
+++ b/tools.suckless.org/dmenu/patches/paste.md Tue Jul 06 18:42:21 2010 -0500
_AT_@ -13,6 +13,7 @@
--------
* [dmenu-4.0-paste.diff](dmenu-4.0-paste.diff) (597) (20091029)
+* [dmenu-tip-paste.diff](dmenu-tip-paste.diff) (594) (20100706)
Author
------
Received on Wed Jul 07 2010 - 01:35:43 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:22 CEST