sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b7f67d7cbc087aa002e294dd7eafc20f20ee0b8b
parent 5700c8a8e597bcf918a8a0e8bf48398a2fff16a8
Author: Andrew Antle <andrew dot antle at gmail dot com>
Date:   Thu, 22 Apr 2010 00:56:26 -0400

Standardize filename for bmarks_history.md, update sprop bmark script.
Diffstat:
Rsurf.suckless.org/files/bmarks-history.md -> surf.suckless.org/files/bmarks_history.md | 0
Asurf.suckless.org/files/bmarks_sprop.md | 18++++++++++++++++++
Dsurf.suckless.org/files/sprop_bookmarking.md | 50--------------------------------------------------
3 files changed, 18 insertions(+), 50 deletions(-)

diff --git a/surf.suckless.org/files/bmarks-history.md b/surf.suckless.org/files/bmarks_history.md diff --git a/surf.suckless.org/files/bmarks_sprop.md b/surf.suckless.org/files/bmarks_sprop.md @@ -0,0 +1,18 @@ +BMARKS SPROP +============ + +Description +----------- +Peter, pancake, and nibble's bmarks script, clobbered to work with sprop(1). + +Development +----------- +Browse the [repository](http://bitbucket.org/antlechrist/bmarks_sprop/src) or +get a copy using [Mercurial](http://www.selenic.com/mercurial/) with the +following command: + + hg clone http://bitbucket.org/antlechrist/bmarks_sprop/ + +Clobberer +--------- +Andrew Antle `<andrew dot antle at gmail dot com>` diff --git a/surf.suckless.org/files/sprop_bookmarking.md b/surf.suckless.org/files/sprop_bookmarking.md @@ -1,50 +0,0 @@ -SPROP BOOKMARKING -================= - -Description ------------ -Create bma.sh in your $PATH: - - $ cat ~/bin/bma.sh - #!/bin/sh - - BMARKS=$HOME/.surf/bmarks - URI="`sprop $1 _SURF_URI`" - - echo "$URI" >> $BMARKS - -Create bml.sh in your $PATH, as well: - - $ cat ~/bin/bml.sh - #!/bin/sh - - CACHE=$HOME/.surf/bmarks - - cat "$CACHE" | sort | uniq > "$CACHE".$$ && - mv "$CACHE".$$ "$CACHE" - - cat "$CACHE" | dmenu - -Modify your config.h just before the definition of `keys[]`: - - #define BMA { .v = (char *[]){ "/bin/sh", "-c", \ - "bma.sh $0", winid, NULL } } - - #define BML(p) { .v = (char *[]){ "/bin/sh", "-c", \ - "sprop $1 $0 `bml.sh` || exit 0", \ - winid, NULL } } - -Then, inside `keys[]`, add: - - { MODKEY, GDK_b, spawn, BML("_SURF_URI") }, - { MODKEY|GDK_SHIFT_MASK,GDK_b, spawn, BMA }, - -Development ------------ - hg clone http://bitbucket.org/antlechrist/sprop-bm-surf/ - -or browse the [repository](http://bitbucket.org/antlechrist/sprop-bm-surf/) - -Author ------- -Andrew Antle `<andrew dot antle at gmail dot com>`