[wiki] surf:history patche

From: tknv <rreedd555_AT_gmail.com>
Date: Sun, 27 Nov 2011 23:39:48 +0700

Hello,

I am not sure it is correct or not.
I think now not much people use surf only, use it with tabbed.
Maybe at that time users will not use surf-id.
So I would like to explain without surf-id by in-line of
http://surf.suckless.org/patches/history

(1) Write a small shell script.
No need.

(2) Modify config.h and add the following.
#define HISTORY { .v = (char *[]){ "/bin/sh", "-c", \
        "xprop -id $0 -f _SURF_GO 8s -set _SURF_GO \
        `cat ~/.surf/history | sort -ru | dmenu -l 10 -b -i || exit0`", \
        winid, NULL } }

and in static Key keys[] add:
        { MODKEY, GDK_Return, spawn, HISTORY},
...

I checked it on surf-0.4.1.

thanks,
-- 
w.tknv/

Received on Sun Nov 27 2011 - 17:39:48 CET

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