[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Thu, 24 Sep 2009 18:41:31 +0000 (UTC)

changeset: 271:ed0c61bf7f95
parent: 265:983a3bbe9b16
user: fred_AT_localhost.localdomain
date: Tue Sep 22 21:46:34 2009 +0200
files: suckless.org/misc/cool_programs.md
description:
Fixed broken links in "cool programs": cmus, cplay, feh, qiv, xli and ircc

 - Astrobe.


diff -r 983a3bbe9b16 -r ed0c61bf7f95 suckless.org/misc/cool_programs.md
--- a/suckless.org/misc/cool_programs.md Tue Sep 22 12:47:53 2009 +0200
+++ b/suckless.org/misc/cool_programs.md Tue Sep 22 21:46:34 2009 +0200
_AT_@ -20,8 +20,8 @@
 
 Audio Players
 -------------
-* [cmus](http://onion.dynserv.net/~timo/cmus.html)
-* [cplay](http://mask.tf.hut.fi/~flu/hacks/cplay/)
+* [cmus](http://cmus.sourceforge.net/)
+* [cplay](http://cplay.sourceforge.net/)
 * [moc](http://moc.daper.net/)
 * [mpd](http://www.musicpd.org/) - A client/server based music player with console and graphical front-ends.
 * [mpg123](http://www.mpg123.de/) - A console mpg player which doesn't use auto*hell, or extra libraries.
_AT_@ -46,14 +46,14 @@
 * [jpg/gif/bmp/png][plan9port] - Simple programs from Plan 9 to display images in no-frills windows. Included with plan9port.
 * [page][plan9port] - Plan 9's image/document viewer program. Included with plan9port.
 * [qiv](http://www.klografx.net/qiv/)
-* [xli](http://pantransit.reptiles.org/prog/)
+* [xli](http://pantransit.reptiles.org/prog/) - broken link? Apparently, there's a copy here: http://ftp.x.org/contrib/applications/ -- at your own risk
 * [xzgv](http://sourceforge.net/projects/xzgv)
 
 IRC Clients
 -----------
 * [acme:SAC](http://caerwyn.com/acme/index.html)
 * [ii](/programs/ii.html) - A FIFO based IRC client which is part of the suckless.org project.
-* [ircc](http://www.r-36.net/ircc.tgz) - A no-frills, ncurses free, console-based IRC client.
+* [ircc](http://www.r-36.net/ircc.tgz) - A no-frills, ncurses free, console-based IRC client. Broken link. Is it [netwalker-ircc?](http://www.freebsdsoftware.org/irc/netwalker-ircc.html)
 * [Irc](http://swtch.com/irc/)
 * [ircrc](http://plan9.bell-labs.com/sources/contrib/fgb/rc/ircrc) - An rc-based IRC client similar to ircc. Needs minor modification to run on UNIX.
 * [irssi](http://www.irssi.org/)

changeset: 272:713918489908
tag: tip
parent: 271:ed0c61bf7f95
parent: 270:7186137ce66f
user: fred_AT_localhost.localdomain
date: Thu Sep 24 20:45:22 2009 +0200
description:
fixed broken links on cool_programs -- Astrobe


diff -r ed0c61bf7f95 -r 713918489908 surf.suckless.org/patches/index.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/index.md Thu Sep 24 20:45:22 2009 +0200
_AT_@ -0,0 +1,30 @@
+PATCHES
+=======
+
+diff generation
+---------------
+For mercurial users:
+
+ cd surf-directory
+ hg diff > surf-X.Y-yourpatchname.diff
+
+For tarballs:
+
+ cd modified-surf-directory/..
+ diff -up original-surf-directory modified-surf-directory > surf-X.Y-yourpatchname.diff
+
+where `X.Y` is a surf tag name or version number.
+
+
+patch application
+-----------------
+For mercurial users:
+
+ cd surf-directory
+ hg patch path/to/patch.diff
+
+For tarballs:
+
+ cd surf-directory
+ patch -p1 < path/to/patch.diff
+
diff -r ed0c61bf7f95 -r 713918489908 surf.suckless.org/patches/searchengines-0.1.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/searchengines-0.1.diff Thu Sep 24 20:45:22 2009 +0200
_AT_@ -0,0 +1,61 @@
+diff -r fee97b4579f2 config.def.h
+--- a/config.def.h Mon Sep 21 03:27:20 2009 +0200
++++ b/config.def.h Wed Sep 23 22:58:21 2009 +0200
+_AT_@ -30,3 +30,6 @@
+ { 0, GDK_Return, hideurl, { 0 }, UrlBar },
+ };
+
++static SearchEngine searchengines[] = {
++ { NULL, NULL },
++};
+diff -r fee97b4579f2 surf.c
+--- a/surf.c Mon Sep 21 03:27:20 2009 +0200
++++ b/surf.c Wed Sep 23 22:58:21 2009 +0200
+_AT_@ -58,6 +58,11 @@
+ KeyFocus focus;
+ } Key;
+
++typedef struct {
++ char *token;
++ char *uri;
++} SearchEngine;
++
+ static Display *dpy;
+ static Atom urlprop;
+ static SoupCookieJar *cookiejar;
+_AT_@ -92,6 +97,7 @@
+ static Client *newclient(void);
+ static WebKitWebView *newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c);
+ static void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d);
++static gchar *parseuri(const gchar *uri);
+ static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d);
+ static void print(Client *c, const Arg *arg);
+ static void proccookies(SoupMessage *m, Client *c);
+_AT_@ -348,14 +354,25 @@
+ g_free(uri);
+ }
+
++gchar *
++parseuri(const gchar *uri) {
++ guint i;
++ for (i = 0; i < LENGTH(searchengines); i++) {
++ if (searchengines[i].token == NULL || searchengines[i].uri == NULL || *(uri + strlen(searchengines[i].token)) != ' ')
++ continue;
++ if(g_str_has_prefix(uri, searchengines[i].token))
++ return g_strdup_printf(searchengines[i].uri, uri + strlen(searchengines[i].token) + 1);
++ }
++ return g_strrstr(uri, "://") ? g_strdup(uri) : g_strdup_printf("http://%s", uri);
++}
++
+ void
+ loaduri(Client *c, const Arg *arg) {
+ gchar *u;
+ const gchar *uri = (gchar *)arg->v;
+ if(!uri)
+ uri = gtk_entry_get_text(GTK_ENTRY(c->urlbar));
+- u = g_strrstr(uri, "://") ? g_strdup(uri)
+- : g_strdup_printf("http://%s", uri);
++ u = parseuri(uri);
+ webkit_web_view_load_uri(c->view, u);
+ c->progress = 0;
+ c->title = copystr(&c->title, u);
diff -r ed0c61bf7f95 -r 713918489908 surf.suckless.org/patches/searchengines.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/patches/searchengines.md Thu Sep 24 20:45:22 2009 +0200
_AT_@ -0,0 +1,32 @@
+SEARCH ENGINES
+============
+
+Description
+-----------
+
+This little patch will allow the use of simple search engines. Put something
+like this in your config.h:
+
+ static SearchEngine searchengines[] = {
+ { "g", "http://www.google.de/search?q=%s" },
+ { "leo", "http://dict.leo.org/ende?search=%s" },
+ };
+
+This will enable searching in your favorit search engine by simply
+putting the prefix of your search engine in front your keywords:
+
+ g foo bar
+
+Or:
+
+ leo hello
+
+Download
+------
+
+* [searchengines-0.1.diff](searchengines-0.1.diff) (4K) (20090923)
+
+Author
+------
+
+- Nils Schweinsberg (McManiaC) <[mail_AT_n-sch.de](mailto:mail_AT_n-sch.de)>
Received on Thu Sep 24 2009 - 20:41:31 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:51 CEST