[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Sat, 9 Jan 2010 20:14:13 +0000 (UTC)

changeset: 423:c0b478113913
tag: tip
user: Andrew Antle <andrew dot antle at gmail dot com>
date: Sat Jan 09 15:11:50 2010 -0500
files: surf.suckless.org/files/simple_bookmarking_redux.md
description:
[surf] Added 'Simple Bookmarking, Redux' to files/ .


diff -r f4068d6b9ef8 -r c0b478113913 surf.suckless.org/files/simple_bookmarking_redux.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/surf.suckless.org/files/simple_bookmarking_redux.md Sat Jan 09 15:11:50 2010 -0500
_AT_@ -0,0 +1,41 @@
+Simple Bookmarking, Redux
+=========================
+
+
+Description
+-----------
+
+Modify your config.h just before the definition of `keys[]`:
+
+ #define BM_PICK { .v = (char *[]){ "/bin/sh", "-c", \
+ "xprop -id $0 -f _SURF_URI 8s -set _SURF_URI \
+ `cat ~/.surf/bookmarks | dmenu || exit 0`", \
+ winid, NULL } }
+
+ #define BM_ADD { .v = (char *[]){ "/bin/sh", "-c", \
+ "(echo `xprop -id $0 _SURF_URI | cut -d '\"' -f 2` && \
+ cat ~/.surf/bookmarks) | sort -u > ~/.surf/bookmarks_new && \
+ mv ~/.surf/bookmarks_new ~/.surf/bookmarks", \
+ winid, NULL } }
+
+Then, inside `keys[]`, add:
+
+ { MODKEY, GDK_b, spawn, BM_PICK },
+ { MODKEY|GDK_SHIFT_MASK,GDK_b, spawn, BM_ADD },
+
+
+### Modkeys
+
+**CTRL-b**
+
+Executes dmenu(1) displaying the list of bookmarks.
+
+**CTRL-SHIFT-b**
+
+Adds the current page to the list of bookmarks, while removing duplicate entries.
+
+
+Author
+------
+
+* Lorenzo Bolla <lbolla at gmail dot com>
Received on Sat Jan 09 2010 - 21:14:13 CET

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