Suckless surf link hinting

Desperately trying to get this working.  I've managed to apply a few patches, can rebuild surf consistently without errors etc. etc., but the script.js file on suckless.org just isn't doing anything.  Can anyone who has gotten this to work walk me through the steps I need to perform? At this point I feel like I really need a step by step tutorial.
step 1. copy script into script.js
step 2. put script in .surf
so on and so forth

I use surf with link hints and it works fine. Here's what I did... Copy text from: http://surf.suckless.org/files/link_hints  (here's a snapshot I uploaded of working copy in case website changes, etc: http://pastebin.com/2Hbgm3yc) and make sure this line is in your config.def.h
static char *scriptfile = ".config/surf/script.js";
Copy the provided script from suckless.org (or pastebin snapshot 2010-10-26) as script.js into your surf directory (~/.surf/script.js or ~/.config/surf/script.js ..etc, depending on your setup in config). The default keybindings for hints are on that webpage. (Ctrl-f, Ctrl-F, Ctrl-c). Here's my entire config.def.h (although there are quite a few modifications from my other patches and I haven't quite gotten everything the way I want)
/* modifier 0 means no modifier */
static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
static char *progress = "#FF0000";
static char *progress_trust = "#00FF00";
static char *stylefile = ".config/surf/style.css";
static char *scriptfile = ".config/surf/script.js";
static char *cookiefile = ".config/surf/cookies.txt";
static char *historyfile = ".config/surf/history";
static char *dldir = ".config/surf/downloads";
static time_t sessiontime = 3600;
static int indicator_thickness = 8;
static int using_proxy = 0;
#define HOMEPAGE "https://bbs.archlinux.org/search.php?action=show_new"
#define NOBACKGROUND 0
#define SETPROP(p, q) { \
.v = (char *[]){ "/bin/zsh", "-c", \
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | stumpish pout`\" &&" \
"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
p, q, winid, NULL } }
#define SETURI(p) { \
.v = (char *[]){ "/bin/zsh", "-c", \
"prop=\`cat ~/.config/surf/history | sort -ru | dmenu -l 10 -b i | xprop -id `cat ~/.config/surf/id` -f SURF_URI 8s -set _SURF_URI`\" &&" \
"xprop -id $1 -f $0 8s -set $0 \"$prop\"", p, winid, NULL } }
#define DOWNLOAD(d) { \
.v = (char *[]){ "/bin/zsh", "-c", \
"dl=\"$XDG_DOWNLOAD_DIR/$(basename \"$0\")\"; urxvt -e \"curl -b ~/.config/surf/cookies.txt -c ~/.config/surf/cookies.txt -L --retry 3 --retry-delay 5 --ssl -k --ftp-pasv -O \"$dl\" \"$0\";\"", \
d, NULL } }
#define BMARK_LOAD { \
.v = (char *[]){ "/bin/zsh", "-c", \
"xprop -id $0 -f _SURF_GO 8s -set _SURF_GO \
`cat ~/.config/surf/bookmarks | dmenu || exit 0`", winid, NULL } }
#define BMARK_ADD { \
.v = (char *[]){ "/bin/zsh", "-c", \
"(echo `xprop -id $0 _SURF_URI | cut -d '\"' -f 2` && \
`cat ~/.config/surf/bookmarks) | sort -u >! /dev/shm/.sm && \
mv -f /dev/shm/.sm ~/.config/surf/bookmarks", winid, NULL } }
#define MODKEY GDK_CONTROL_MASK
static SearchEngine searchengines[] = {
{ "g", "http://www.google.com/search?q=%s" },
{ "s", "https://www.google.com/search?q=%s" },
{ "k", "http://www.kickasstorrents.com/search/%s" },
{ "l", "http://last.fm/music/?q=%s" },
{ "e", "http://search.ebay.com/search/search.dll?MfcISAPICommand=GetResult&krd=1&ht=1&shortcut=4&SoftProperty=MetaEndSort&cgiurl=http%3A%2Fcgi.com/%2Fws%2F&maxRecordsPerPage=50&st=2&ebaytag1code=77&query=%s" },
{ "i", "http://www.imdb.com/find?s=tt&q=%s" },
{ "p", "http://thepiratebay.org/search/%s" },
{ "w", "https://secure.wikimedia.org/wikipedia/en/w/index.php?search=%s" },
{ "y", "http://www.youtube.com/results?search_query=%s" },
static Key keys[] = {
/* modifier keyval function arg Focus */
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
{ MODKEY, GDK_r, reload, { .b = FALSE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 } },
{ MODKEY, GDK_l, navigate, { .i = +1 } },
{ MODKEY, GDK_h, navigate, { .i = -1 } },
{ MODKEY, GDK_j, scroll, { .i = +1 } },
{ MODKEY, GDK_k, scroll, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_j, scroll, { .i = +10 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_k, scroll, { .i = -10 } },
{ 0, GDK_Escape, stop, { 0 } },
{ MODKEY, GDK_Return, spawn, SETURI("_SURF_URI") },
{ MODKEY|GDK_SHIFT_MASK,GDK_s, stop, { 0 } },
{ MODKEY, GDK_o, source, { 0 } },
/* { MODKEY, GKD_a, spawn, SETPROP("_SURF_AGENT") }, */
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
/* { MODKEY, GDK_t, togglesb, { 0 } }, */
{ MODKEY, GDK_n, find, { .b = TRUE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
{ MODKEY, GDK_b, spawn, BMARK_LOAD },
{ MODKEY|GDK_SHIFT_MASK,GDK_b, spawn, BMARK_ADD },

Similar Messages

  • A problem using Privoxy with suckless surf

    Hi guys,
    I'm having a problem with Privoxy on some sites. I use the surf web browser from suckless.org.
    When I visit some sites, YouTube for example, surf spawns multiple terminal windows which seemingly try to download files.
    The downloads fail with "curl: (56) Received HTTP code 403 from proxy after CONNECT".
    It does this for every page I click on an affected site.
    I've narrowed the problem down to Privoxy. If I disable it, then this behaviour stops.
    However, short of removing Privoxy from the equation, I'm struggling to solve this problem on my own.
    I'm using the default Privoxy configuration. It's incredibly irritating so any help fixing this would be much appreciated.
    Regards,
    Chris

    Hi,
    Get the source code of kxml files and rename the package to u r package structure and play.
    Cheers
    Phani

  • Problem with NetWeaver Trial install on Windows Vista

    When I click on the installer in start.htm, following message appear..
    The installer had to update some MicroSoft runtime libraries. For correct operation, a system reboot is required. Do you want to reboot now?
    After I reboot the machine and click on installer again as per the instructions, it still gives me the same message? What should I do?

    Dear Subra,
    Welcome to SDN. There is a seperate forum available for "Trials, Previews & Other Downloads".
    Visit followingl links:
    Hint for people installing trial  SAP software on  windows.
    Troubleshooting Guide for NW2004s ABAP Trial Version
    New SAP NetWeaver 7.0 ABAP Trial Version SP12
    Moving this thread to "Trials, Previews & Other Downloads" Forum.
    Regards,
    Naveen.

  • Error in HTMLB page

    hi,
    please try to give me a solution to the following error araised in the HTMLB.
    i have designed a jsp page using htmlb with several controls, that is online application form so we have more controls there, till now it worked, but now when trying to create any control after the last control it is giving the error as....
    <b>
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Error in executing a process for compilation, C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/htmlbcon/work/pagelet/_sapportalsjsp_gridlay.java:35: code too large for try statement try { ^ C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/htmlbcon/work/pagelet/_sapportalsjsp_gridlay.java:5506: code too large for try statement } catch(IOException jspioex) {} ^ C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/irj/servletjsp/irj/root/WEB-INF/portal/portalapps/HTMLBcon/work/pagelet/_sapportalsjsp_Gridlay.java:22: code too large public void doContent(IPortalComponentRequest componentRequest, IPortalComponentResponse aResponse) ^ 3 errors .
    Exception id: 10:06_24/06/05_0029_1761750
    See the details for the exception ID in the log file</b>
    this error is not coming only with one control, any code we written after the last control that is checkbox group.
    i don't think it is a controls error or any syntax error.
    is there any code length limit in the jsp pages? if not what might be the problem?
    kindly consider the error.
    Thanks & Regards,
    sireesha.

    Hi Sireesha,
    see code too large for try statement and the link / hints provided there.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers or give some feedback what's your additional question - e.g. in various ways to communicate to the database Thanks in advance!

  • Deploy BC4J to database, how to?

    Hello, I want to deploy business objects to the database and then map some methods from an application module as stored procedures.
    I'm using JDeveloper 10.1.3 and found an option to deploy to the database, but it fails because the database does not have all the BC4J runtime libraries. I've read in some other threads that deploying from JDeveloper would deploy the needed libraries, but that is not happening and I can't find an option to make that happen.
    I also tried loading the libraries manually but it is an endless process because of the dependencies and then I reach a point where I don't know what library is missing. It seems that I need to load all the jar files below the JDeveloper installation directory!
    If somebody has some links, hints, advice or guide to do what I described I'd really appreciate it.
    Thank you.

    Hi Brenden, I can't install AS on the same server, DBA would not want to mess up with the main production database server.
    We have a 10g AS for production but it is in a different physical location from the database server and it is running OLTP apps; I am worried about data transference because the rule enabled application will work over a large amount of records, which would be extracted from the database server. The point is that it is a batch process and I thought it would be better for it to be deployed into the database server.
    Well, I guess I will have to find a turn around, maybe not using BC4J, which is just convenience as it is playing the role of an OR mapper.
    Thanks for your help.

  • HTML Component issue?

    No "title" attribute support inside HTML component in AIR application?
    For example, we have some text in our <mx:HTML> like this:
    <html>
    <body>
    [ <a href="http://domain.tld/" title="Some hint text for this link" onmouseover="this.style.color='#f00'" onmouseout="this.style.color='#0f0'">Megalink</a> ]
    </body>
    </html>
    And when we run our application and move cursor over link, color will be changed (so, mouse events handles correctly), but "Some hint text for this link" hint/tooltip will not be shown...
    Bug/Feature/Misconfiguration?!?

    http://www.w3.org/TR/html401/struct/global.html#adef-title

  • Accordion tabs w/panel sub-nav - default open issues

    I have a spry accordion in a left sidebar, and I'm using it as navigation for a slideshow for a website I'm working on. Each of my 5 accordion tabs has a different category of slideshow, with each panel having multiple sub-navigation links that each link to a different slideshow which appears in the main part of the page (to the right of the sidebar). Say it's something like this:
    VENUES (tab)
    (start panel)
    Bayside Restaurant (link)
    Historic Ballroom (link)
    Western Ranch (link)
    (end panel)
    ACTIVITIES (tab)
    (start panel)
    Surfing (link)
    Dancing (link)
    Horse back riding (link)
    (end panel)
    The sub-navigation to each slideshow is activated by simply clicking on the text, which I linked with the "point to file" link tool in the properties menu. 
    Ideally, I'd like to work with one template in Dreamweaver for all pages/slideshows I'm creating, but I'm running into a problem.  I know how to change the default panel in the .js so that a different one appears open when a user first accesses the page, but I can't figure out how to get the default panel to change when the user clicks on a different panel and attempts to use the subnavigation.  The subnavigation works just fine (it takes the user to the correct slideshow), but then the panel snaps shut instead of remaining open on the one the user selected.
    (So, to further explain with the example above, say the user wanted to look at all the links in the "Venues" tab, but the default is to have the "Activities" tab open on arrival.  The "Venues" tab opens just fine on the click, but as soon as the user clicks on, say "Bayside Restaurant," the correct slideshow appears to the right, but then the "Venues" tab snaps shut and the "Activities" tab and its sub-navigation appears open again. The user then has to click on the "Venues" tab again if s/he wants to see the other options and view a different slideshow, rather than simply being able to click on the next link.) 
    I tried making multiple templates, with different default panels open as a solution, but that's not working either. . .for some reason it keeps defaulting back.  
    Does this make sense?  Are there any solutions to this problem? Any help would be much appreciated.
    Thanks!
    Rebekka

    I think I found your problem.  It lies in the Javascript:
    <script language="JavaScript" type="text/javascript">
    var indexAccordion = new Spry.Widget.Accordion("indexAccordion");
    var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false });
    </script>
    You have essentially duplicated the code in order to accomodate the useFixedPanelHeights.  Consolidate it into single one, and remove the duplicate:
    <script language="JavaScript" type="text/javascript"> var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false }); </script>
    IE might be having trouble understanding the double instances of the script and is ignoring the latter one.  Just keep the latter one and it might fix it.
    Also, thanks for the tip, but I use Chrome's Developer Tools... it just didn't cross my mind since I've been busy =)

  • DB_Connect Error connecting to SqlServer

    We have a BI Netweaver 7.0 system running on Itanium with an Oracle Database.
    Using tcode RSA1 I wanted to create a remote connect to a SqlServer database.
    The DBMS type is MSS. The error message we are getting is "No shared library found for the database"
    Is this possible?

    SQL server must be possible using dbconnect, a checklist for you to review in case you missed out on something:-
    1. Check:-
    If the source DBMS and BI DBMS are different - {your case (Oracle and sql server) }:
    &#9675;       You have installed the database-specific DB client software on your BI application server. You can get information about the database-specific DB client from the respective database manufacturers.
    &#9675;       You have installed the database-specific DBSL on your BI application server.
    2. Procedure for Installing DBSL: [http://help.sap.com/saphelp_nw70/helpdata/EN/50/63d6b37bda7f4a92e2dec21b14ceee/frameset.htm]
    3. List and specifications (supported databases)
    [http://help.sap.com/saphelp_nw70/helpdata/EN/50/63d6b37bda7f4a92e2dec21b14ceee/frameset.htm]
    This links hints at some pre-requisites for the connection, check if you satisfy all.
    Hope this helps.
    Cheers,
    Sumit

  • Detect keyboard events

    Is it possible to detect if 2 buttons on the keyboard is pressed down in java ?
    I kind of know how to detect if one button is pressed but I don't know how to proceed if I want to detect 2 buttons.
    links/hints are both appreciated
    David

    Hi, I have the same problem.
    My searches so far have led me to think one way could be to override the EventQueue class wich seems to buffer all the events in a queue, but I'm not certain of this.
    If you find a solution, please tell me !
    [email protected]

  • Compile procedure  on 8.1.7 Win OK - on  9.2.0.4.0 SUN Error

    Hi,
    I have got a problem with compiling procedure on database 9.2.0.4.0 SUN. This same procedure compile without problems on 8.1.7 Win. Links, hints will be helpful. The procedure and error are below:
    CREATE OR REPLACE PROCEDURE BUDZET2003.P_IM_PR_PRZYCH_PE_TMP(USER IN CHAR)
    is
    BEGIN
    insert into IM_PR_PRZYCH_TMP
    Select PROJEKTY_ID, PROJEKTY_NAZWA,PROJEKTY_NADRZ_ID,PROJEKTY_OPERATOR,PROJEKTY_FORMULA,'',PROJEKTY_SORT2,
    WYDZIAL, ODPOWIEDZIALNY, WAZNY_OD, WAZNY_DO, ZASILANIE, SYSDATE, USER ,''
    FROM W2_PR_PRZYCH_EE_C
    start with PROJEKTY_id = 'PE'
         Connect by prior PROJEKTY_id = PROJEKTY_NADRZ_ID
    WHERE
    PROJEKTY_ID NOT IN
    (SELECT PROJEKTY_ID
         FROM W2_PR_PRZYCH)
    END;
    4/1 PL/SQL: SQL Statement ignored
    10/53 PL/SQL: ORA-00907:
    Thanks
    jozefp

    Hi,
    usually I expect people to do a little research and I do not give everything chewed.
    Point 4:
    go to the
    <b>Oracle9i Database Migration Release 2 (9.2)</b>
    go to the chapter 3
    <b>Upgrading a Database to the New Oracle9i Release</b>
    go to the point:
    <b>Upgrade the Database Manually</b>
    Exactly from here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96530/upgrade.htm#1009200
    Keep in mind
    1) that the <i>EXACT </i>procedure you are following it is not indicated in this manual
    2) you have to think a little ( do you have all the windows services created on the destination system? if not, you have to create them ... )
    3) this procedure is not supported by SAP. It is a valid option but not supported by them. You have to practice until you get all the points correctly

  • Elements 10, corporate installation?

    Hello,
    I use CS5 myself but I am supposed to coordinate installation of PSE10 for 12-15 users, and to provide training for them. I have installed PSE10 as a trial version for my home and office computers.
    Now I would appreciate links, hints or guidelines for corporate installation. Is each user required to establish and Adobe account for registration, or is it possible for our company’s IT department to set up an account and register 12-15 installations? Is the outcome (centralized or individual registration) different if some users wish to perform an additional installation for their home computers? (I believe two installations is permitted per serial number.)
    Best regards, Antero

    Yes two installations enabling a person to have usage on a desktop and/or a laptop or office/home desktop/laptops.
    Adobe also offers volume licensing and educational licensing; so its best to check the exact terms of your intended purchases.

  • SunLink OSI 8.1 - how to send OSI echo requests programatically (C)

    Since the osi_ping provided by the SUN packages will not give any information about roundtrip times I am about to write an independend implemenation of the protocol.
    Unfortunately neither the TLI nor the APLI documentation give any hints on how to send non DT PDUs (for the echo function ERQ/ERP is required while binding to the local NSAP configured for CLNS and used by the OSI stack).
    Can any body help out with links, hints or even code samples here ?
    Best Regards
    Falk John

    Hi.
    This product EOL. Oracle request support contract for any contacts.
    In case you have support contract you can upgrade OSI to 9.0 + patch. After this you not need additional license key.
    Additional information:
    http://www.oracle.com/us/support/licensecodes/sun/solstice-connectivity-deveoper-tools-274762.html
    You can try submit request from URL above.
    Regards

  • Getting Google Contacts into iPhone: possible?

    Hi,
    I am trying to get my contacts from gmail loaded into iPhone. Can anyone please give me a clue?
    Thanks,
    T

    In gmail, go to your Contacts, and look for the Export link (hint: upper-right part of the screen). Export to CSV (I'm not sure whether you'll have better luck with the Google or Outlook format, honestly).
    Now grab this little program:
    http://homepage.mac.com/sroy/addressbookimporter/
    which is free for a single use or $10 to keep, and use it to import those to Address Book.
    Now sync your iPhone with Address Book, et voila.

  • When going to another page on a website firefox will crash completely without any error message.

    I have tried the troubleshooting tips provided by Firefox but problem keeps coming up.
    I mostly have trouble with the ilovehits.com website.
    All the links on the site menu work fine except the "Start surfing"
    link......When I click on that link Firefox will crash and I am returned to my desktop.
    I have to activate Firefox again to browse.

    See:
    *Firefox/Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Tools > Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.com/kb/Options+window+-+Advanced+panel#General_tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Replacement Fan for DV7-6195US

    Greetings All,
    I need to order a replaceent fan/heatsink for a DV7-6195US notebook. I can't seem to find the part # or any other info. for this on the usual pages. Can anyone point me in the right direction?
    Thank you in advance.
    --- Gary

    Gary,
    Specs: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02863098
    Manual: http://h10032.www1.hp.com/ctg/Manual/c02842278.pdf
    The manual only lists fan/heat sink assembly for Intel processors with 2GB discrete graphics system & not for 1GB discrete graphics, which is present in yours.
    This is your Laptop's HP part surfer link:http://partsurfer.hp.com/Search.aspx?SearchText=LW170UA
    In there too, only UMA & 2GB graphics system cooling fan/heat sink assembly part numbers are listed,
    Only part for 2GB discrete graphic system is listed- 666391-001 (partsurfer) or 653627-001 (manual) .
    http://www.amazon.com/gp/aw/d/B008L30LKW?pc_redir=1408522867&robot_redir=1
    But, from this thread - http://h30434.www3.hp.com/t5/Notebook-Hardware/Cooling-Fan/td-p/3475779 , spare part number for 1GB discrete graphics such as yours is listed as 666390-001.
    http://partsurfer.hp.com/Search.aspx?SearchText=666390-001
    http://www.newegg.com/Product/Product.aspx?Item=9SIA3DY1S03962
    http://m.ebay.ca/itm?itemId=221496259906
    http://m.ebay.com/itm?itemId=390914163035
    Through online stores, I could find that both are compatible with your laptop model - 666390-001 or 666391-001.
    Hope this helps.
    Regards
    Visruth
    ++Please click KUDOS / White thumb to say thanks
    ++Please click ACCEPT AS SOLUTION to help others, find this solution faster
    **I'm a Volunteer, I do not work for HP**

Maybe you are looking for

  • Error message when trying to open AI file

    When I double click an AI file to open it, I get this message: "Can't open the illustration. There is not enough room for the window, increase document area and try again". This error started happening about a week or two ago. Although it is inconven

  • Problems with Sync with Outlook contacts and calendar (Office 2007)

    I have been able to set up my Blackberry curve with email accounts, but sync with Outlook contacts fails. My device will show as connected, but nothing happens. I continue to get a message if I want to use Mass Storage mode on my phone and I assume t

  • Can I get imessage on my pc?

    Can I get iMessage on my pc? I realize this is an apple app, and it's not supported so I guess I'm really asking if it will ever happen. It would help so much, considering I have both an iPad, iPod, Mac, and pc it would be really helpful to have it a

  • Question on Replication?

    Hi Friends I know that we can replicate Material Master from ECC to SRM using object: Material . Is it possible in Std to replicate Material Master along with Text from ECC to SRM by adding the corresponding table name in CRMFILTAB and R3AC1 or does

  • Embed word documents in adobe form

    Hi, Is it possible to embedd a word document in Adobe PDF forms. We have a requrirement where we have to embedd more than one word documents into adobe forms. I want to read the contents of word document and display them in PDF document. There are me