[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 6 Jul 2010 03:15:04 +0000 (UTC)

changeset: 580:fc0f456e6f89
tag: tip
user: Matthew Bauer <mjbauer95_AT_gmail.com>
date: Mon Jul 05 22:21:50 2010 -0500
files: surf.suckless.org/patches/autoopen.md surf.suckless.org/patches/surf-0.3-autoopen.diff
description:
added auto open patch to surf


diff -r 73bc52f68408 -r fc0f456e6f89 surf.suckless.org/patches/autoopen.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/autoopen.md Mon Jul 05 22:21:50 2010 -0500
_AT_@ -0,0 +1,28 @@
+AUTO OPEN DOWNLOADS
+===================
+
+Description
+-----------
+
+This patch uses xdg-open to open a download once it has finished.
+
+It simply replaces this:
+
+ "xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
+
+with this:
+
+ "ofile=\"$(xdg-user-dir DOWNLOAD)/$(basename \"$0\")\"; wget --load-cookies ~/.surf/cookies.txt -O \"$ofile\" \"$0\"; xdg-open \"$ofile\"", \
+
+in your config.def.h file.
+
+
+Download
+--------
+
+* [surf-0.3-autoopen.diff](surf-0.3-autoopen.diff) (.5k) (20100705)
+
+Author
+------
+
+* Matthew Bauer <[mjbauer95_AT_gmail.com](mailto:mjbauer95_AT_gmail.com)>
diff -r 73bc52f68408 -r fc0f456e6f89 surf.suckless.org/patches/surf-0.3-autoopen.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/surf-0.3-autoopen.diff Mon Jul 05 22:21:50 2010 -0500
_AT_@ -0,0 +1,12 @@
+diff -r dbb565b8d61c config.def.h
+--- a/config.def.h Fri Jun 25 09:42:58 2010 +0200
++++ b/config.def.h Mon Jul 05 22:07:35 2010 -0500
+_AT_@ -14,7 +14,7 @@
+ p, q, winid, NULL } }
+ #define DOWNLOAD(d) { \
+ .v = (char *[]){ "/bin/sh", "-c", \
+- "xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
++ "ofile=\"$(xdg-user-dir DOWNLOAD)/$(basename \"$0\")\"; wget --load-cookies ~/.surf/cookies.txt -O \"$ofile\" \"$0\"; xdg-open \"$ofile\"", \
+ d, NULL } }
+ #define MODKEY GDK_CONTROL_MASK
+ static Key keys[] = {
Received on Tue Jul 06 2010 - 05:15:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:22 CEST