[wiki] [sites] wiki updated
changeset: 435:24661c4f0f7f
tag: tip
user: wart_
date: Tue Jan 19 10:35:32 2010 -0500
files: surf.suckless.org/patches/history.md
description:
fixed headings
diff -r e7c2f8f513b5 -r 24661c4f0f7f surf.suckless.org/patches/history.md
--- a/surf.suckless.org/patches/history.md Tue Jan 19 10:25:17 2010 -0500
+++ b/surf.suckless.org/patches/history.md Tue Jan 19 10:35:32 2010 -0500
_AT_@ -13,15 +13,15 @@
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:
_AT_@ -31,14 +31,14 @@
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
--------
Received on Tue Jan 19 2010 - 16:36:17 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:06 CEST