sites

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

commit 3ebfceffb46c87636de6e89d900b547a826eee6f
parent 82cd986fb882da33c9f5bd4f7e0b70a1f86db64c
Author: Andrew Antle <andrew dot antle at gmail dot com>
Date:   Sat,  9 Jan 2010 15:11:50 -0500

[surf] Added 'Simple Bookmarking, Redux' to files/ .
Diffstat:
Asurf.suckless.org/files/simple_bookmarking_redux.md | 41+++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/files/simple_bookmarking_redux.md b/surf.suckless.org/files/simple_bookmarking_redux.md @@ -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>