changeset: 336:c6801199770e
tag: tip
user: Evan Gates <evan.gates_AT_gmail.com>
date: Thu Oct 29 13:17:15 2009 -0700
files: tools.suckless.org/dmenu.md tools.suckless.org/dmenu/index.md tools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff tools.suckless.org/dmenu/patches/paste.md
description:
moved dmenu to dmenu/index and added dmenu-paste patch to dmenu/patches
diff -r a1ad49e0280d -r c6801199770e tools.suckless.org/dmenu.md
--- a/tools.suckless.org/dmenu.md Thu Oct 29 12:30:52 2009 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,17 +0,0 @@
-DMENU
-=====
-dynamic menu is a generic menu for X, originally designed for [dwm](
http://dwm.suckless.org/).
-It manages huge amounts (up to 10.000 and more) of user defined menu
-items efficiently.
-
-Download
---------
-* [dmenu-4.0](
http://dl.suckless.org/tools/dmenu-4.0.tar.gz) (20090417)
-
-Mailing list
-------------
-* `dev+subscribe_AT_suckless.org` ([Archives](
http://lists.suckless.org/dev/)) ([Old Archives](
http://lists.suckless.org/dwm/)) (see [community](
http://suckless.org/common/community/) for details)
-
-Links
------
-* [Man page](
http://man.suckless.org/tools/1/dmenu)
diff -r a1ad49e0280d -r c6801199770e tools.suckless.org/dmenu/index.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/index.md Thu Oct 29 13:17:15 2009 -0700
_AT_@ -0,0 +1,17 @@
+DMENU
+=====
+dynamic menu is a generic menu for X, originally designed for [dwm](
http://dwm.suckless.org/).
+It manages huge amounts (up to 10.000 and more) of user defined menu
+items efficiently.
+
+Download
+--------
+* [dmenu-4.0](
http://dl.suckless.org/tools/dmenu-4.0.tar.gz) (20090417)
+
+Mailing list
+------------
+* `dev+subscribe_AT_suckless.org` ([Archives](
http://lists.suckless.org/dev/)) ([Old Archives](
http://lists.suckless.org/dwm/)) (see [community](
http://suckless.org/common/community/) for details)
+
+Links
+-----
+* [Man page](
http://man.suckless.org/tools/1/dmenu)
diff -r a1ad49e0280d -r c6801199770e tools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/dmenu-4.0-paste.diff Thu Oct 29 13:17:15 2009 -0700
_AT_@ -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
+_AT_@ -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 -r a1ad49e0280d -r c6801199770e tools.suckless.org/dmenu/patches/paste.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools.suckless.org/dmenu/patches/paste.md Thu Oct 29 13:17:15 2009 -0700
_AT_@ -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_AT_gmail.com](mailto:evan.gates_AT_gmail.com)>
Received on Thu Oct 29 2009 - 21:17:24 CET