Re: [dev] [surf] Shortcuts for horizontal scrolling

From: <>
Date: Sun, 22 Aug 2010 11:17:20 +0200

* Alex Puterbaugh <> [2010-08-21 20:32]:
> I think that horizontal scrolling via the keyboard is far from an
> "edge" use case for a web browser that already depends so heavily on
> the keyboard,

Yep. I've patched surf for horiz scrolling several months ago and shared
the patch here I guess. There are so many pages which use fixed width wider
than my netbook's screen. Horizontal scrolling is a must.

Also, the following proved to be useful for me, especially for sites with
mainly text and not sane css:

        # cat .surf/text_style.css
        body,textarea,p,input,td,tr,div,h1,h2,h3,h4 {
                background-color:#AFD7AF !important;
                text-color:#121212 !important;

with following in config.h

        { MODKEY, GDK_t, setstyle, { .v = "/home/stanio/.surf/text_style.css" } },
        { MODKEY, GDK_T, setstyle, { .v = (const char *)NULL} },

and in surf.c

        setstyle(Client *c, const Arg *arg){
          WebKitWebSettings *settings;
          char *uri, *customstylefile;

          customstylefile = arg->v==NULL?stylefile:(char *)arg->v;
          settings = webkit_web_view_get_settings(c->view);
          uri = g_strconcat("file://", customstylefile, NULL);
          g_object_set(G_OBJECT(settings), "user-stylesheet-uri", uri, NULL);


Received on Sun Aug 22 2010 - 11:17:20 CEST

This archive was generated by hypermail 2.2.0 : Sun Aug 22 2010 - 11:24:02 CEST