sites

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

commit 53907ba61e2925e592e6d0e2c13a15116be1d311
parent 736b333b5ad79033990d1f504385aacd05f3e48b
Author: wart_ <unknown>
Date:   Tue, 19 Jan 2010 10:35:32 -0500

fixed headings
Diffstat:
Msurf.suckless.org/patches/history.md | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/surf.suckless.org/patches/history.md b/surf.suckless.org/patches/history.md @@ -13,15 +13,15 @@ Here are some ways of using it. 1. Write a small shell script. - #!/bin/sh - cat ~/.surf/history | sort -ru | dmenu -l 10 -b -i | xprop -id `cat ~/.surf/id` -f SURF_URI 8s -set _SURF_URI +#!/bin/sh +cat ~/.surf/history | sort -ru | dmenu -l 10 -b -i | xprop -id `cat ~/.surf/id` -f SURF_URI 8s -set _SURF_URI 2. Modify config.h and add the following. #define SETURI(p) { .v = (char *[]){ "/bin/sh", "-c", \ - "prop=\"`dmenu.uri.sh`\" &&" \ - "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ - p, winid, NULL } } +"prop=\"`dmenu.uri.sh`\" &&" \ +"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ +p, winid, NULL } } Add, in static Key keys[] add: @@ -31,14 +31,14 @@ Here are some tips on using it. 1. Remove duplicates periodically: - cat ~/.surf/history > ~/.surf/history.$$ - cat ~/.surf/history.$$ | sort | uniq >~/.surf/history - rm -f ~/.surf/history.$$ +cat ~/.surf/history > ~/.surf/history.$$ +cat ~/.surf/history.$$ | sort | uniq >~/.surf/history +rm -f ~/.surf/history.$$ 2. Import firefox history: - sqlite3 -list /home/$USER/.mozilla/firefox/*.default/places.sqlite 'select url from moz_places ;' |\ - grep http >> ~/.surf/history +sqlite3 -list /home/$USER/.mozilla/firefox/*.default/places.sqlite 'select url from moz_places ;' |\ +grep http >> ~/.surf/history Download --------