Compare commits
104 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b814567e2b | |||
| 0cb1597801 | |||
| 7e02344a61 | |||
| 1abb2ebe7a | |||
| 37e43501d8 | |||
| da5290a41a | |||
| c64c368d86 | |||
| 4c41d363b7 | |||
| 5a02d3e500 | |||
| f9714ab838 | |||
| 8682a4dffb | |||
| cee8f0186c | |||
| 3530d18d8e | |||
| 7ca9421a69 | |||
| 1206b2c587 | |||
| c8fdd4d583 | |||
| 6e019362c5 | |||
| 75e3fe5b95 | |||
| 11b34c0814 | |||
| 2aa1c38aed | |||
| d04fb9bff3 | |||
| af7522006b | |||
| 50befe4a95 | |||
| 581075796a | |||
| 934705c420 | |||
| ee04671220 | |||
| c069b76f1b | |||
| 981ade6eeb | |||
| 00f9dcdf43 | |||
| 971856a579 | |||
| d0020bad4f | |||
| c3a827d621 | |||
| b70a966aa6 | |||
| cdc80731fb | |||
| b87123ac9b | |||
| d4ac9fb6f4 | |||
| 10105c8b87 | |||
| 7c24c61ab2 | |||
| 890ab510ea | |||
| 3e017b1a89 | |||
| bd17d359d6 | |||
| 60c58fbf17 | |||
| 2fb122c012 | |||
| 6e68af115d | |||
| fef80cd56c | |||
| 6124176b89 | |||
| 11fa5a7a4d | |||
| 954a718197 | |||
| 26eb2f761c | |||
| bc46e954f2 | |||
| 432f3c6b53 | |||
| 7e9a85a5cb | |||
| adc650f399 | |||
| 5bca222339 | |||
| e6cefa584e | |||
| b5096b1c8f | |||
| 690118133d | |||
| 84611a5d29 | |||
| 5def2e51da | |||
| 2d1e422368 | |||
| 82abf5154f | |||
| 526b974c33 | |||
| 320e4e4388 | |||
| acec16e685 | |||
| 42fdc77f5e | |||
| a53dc90171 | |||
| c4f01cd18b | |||
| 0b5b798eb2 | |||
| 2c2a7b608e | |||
| ba8617e4ee | |||
| 701815a5f2 | |||
| d6794e0d75 | |||
| b4e78555d0 | |||
| d9cecc8932 | |||
| 72905b8bfc | |||
| bb1fc4195f | |||
| 2e1fb87361 | |||
| 04d46d1791 | |||
| 76940a9ab5 | |||
| d542773e75 | |||
| f6a35e5fbf | |||
| 96188f83f0 | |||
| 26a2dbac65 | |||
| 58c4e18975 | |||
| e9ec482049 | |||
| bce814b30a | |||
| 1f99df029c | |||
| 92d7ba7ed8 | |||
| 42c6c90366 | |||
| b9530ad5d1 | |||
| 60f574e4b7 | |||
| 0f3e3bf669 | |||
| ad538bb00a | |||
| 421486db18 | |||
| f86977a6fa | |||
| b0f35be17b | |||
| 42829cdad0 | |||
| 94f2f2eace | |||
| e39b7e623c | |||
| 7c34b37786 | |||
| 4415c475f7 | |||
| b7cc1ae964 | |||
| abcf5f06ed | |||
| 566b452b46 |
@@ -1,85 +0,0 @@
|
|||||||
Code of Conduct
|
|
||||||
===============
|
|
||||||
|
|
||||||
> ==Phrack Inc.==
|
|
||||||
> Volume One, Issue 7, Phile 3 of 10
|
|
||||||
>
|
|
||||||
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
|
||||||
>
|
|
||||||
> The following was written shortly after my arrest...
|
|
||||||
>
|
|
||||||
> \/\The Conscience of a Hacker/\/
|
|
||||||
>
|
|
||||||
> by
|
|
||||||
>
|
|
||||||
> +++The Mentor+++
|
|
||||||
>
|
|
||||||
> Written on January 8, 1986
|
|
||||||
>
|
|
||||||
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
|
||||||
>
|
|
||||||
> Another one got caught today, it's all over the papers. "Teenager
|
|
||||||
> Arrested in Computer Crime Scandal", "Hacker Arrested after Bank Tampering"...
|
|
||||||
> Damn kids. They're all alike.
|
|
||||||
>
|
|
||||||
> But did you, in your three-piece psychology and 1950's technobrain,
|
|
||||||
> ever take a look behind the eyes of the hacker? Did you ever wonder what
|
|
||||||
> made him tick, what forces shaped him, what may have molded him?
|
|
||||||
> I am a hacker, enter my world...
|
|
||||||
> Mine is a world that begins with school... I'm smarter than most of
|
|
||||||
> the other kids, this crap they teach us bores me...
|
|
||||||
> Damn underachiever. They're all alike.
|
|
||||||
>
|
|
||||||
> I'm in junior high or high school. I've listened to teachers explain
|
|
||||||
> for the fifteenth time how to reduce a fraction. I understand it. "No, Ms.
|
|
||||||
> Smith, I didn't show my work. I did it in my head..."
|
|
||||||
> Damn kid. Probably copied it. They're all alike.
|
|
||||||
>
|
|
||||||
> I made a discovery today. I found a computer. Wait a second, this is
|
|
||||||
> cool. It does what I want it to. If it makes a mistake, it's because I
|
|
||||||
> screwed it up. Not because it doesn't like me...
|
|
||||||
> Or feels threatened by me...
|
|
||||||
> Or thinks I'm a smart ass...
|
|
||||||
> Or doesn't like teaching and shouldn't be here...
|
|
||||||
> Damn kid. All he does is play games. They're all alike.
|
|
||||||
>
|
|
||||||
> And then it happened... a door opened to a world... rushing through
|
|
||||||
> the phone line like heroin through an addict's veins, an electronic pulse is
|
|
||||||
> sent out, a refuge from the day-to-day incompetencies is sought... a board is
|
|
||||||
> found.
|
|
||||||
> "This is it... this is where I belong..."
|
|
||||||
> I know everyone here... even if I've never met them, never talked to
|
|
||||||
> them, may never hear from them again... I know you all...
|
|
||||||
> Damn kid. Tying up the phone line again. They're all alike...
|
|
||||||
>
|
|
||||||
> You bet your ass we're all alike... we've been spoon-fed baby food at
|
|
||||||
> school when we hungered for steak... the bits of meat that you did let slip
|
|
||||||
> through were pre-chewed and tasteless. We've been dominated by sadists, or
|
|
||||||
> ignored by the apathetic. The few that had something to teach found us will-
|
|
||||||
> ing pupils, but those few are like drops of water in the desert.
|
|
||||||
>
|
|
||||||
> This is our world now... the world of the electron and the switch, the
|
|
||||||
> beauty of the baud. We make use of a service already existing without paying
|
|
||||||
> for what could be dirt-cheap if it wasn't run by profiteering gluttons, and
|
|
||||||
> you call us criminals. We explore... and you call us criminals. We seek
|
|
||||||
> after knowledge... and you call us criminals. We exist without skin color,
|
|
||||||
> without nationality, without religious bias... and you call us criminals.
|
|
||||||
> You build atomic bombs, you wage wars, you murder, cheat, and lie to us
|
|
||||||
> and try to make us believe it's for our own good, yet we're the criminals.
|
|
||||||
>
|
|
||||||
> Yes, I am a criminal. My crime is that of curiosity. My crime is
|
|
||||||
> that of judging people by what they say and think, not what they look like.
|
|
||||||
> My crime is that of outsmarting you, something that you will never forgive me
|
|
||||||
> for.
|
|
||||||
>
|
|
||||||
> I am a hacker, and this is my manifesto. You may stop this individual,
|
|
||||||
> but you can't stop us all... after all, we're all alike.
|
|
||||||
|
|
||||||
Keep to your sanity, question the world, even this manifest.
|
|
||||||
|
|
||||||
Don't follow morals, nothing is right or wrong.
|
|
||||||
|
|
||||||
Have fun.
|
|
||||||
|
|
||||||
Yours project maintainer on 2016-01-27.
|
|
||||||
|
|
||||||
+101
-78
@@ -1,42 +1,52 @@
|
|||||||
/* modifier 0 means no modifier */
|
/* modifier 0 means no modifier */
|
||||||
static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
|
static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */
|
||||||
"AppleWebKit/537.15 (KHTML, like Gecko) "
|
static char *fulluseragent = ""; /* Or override the whole user agent string */
|
||||||
"Chrome/24.0.1295.0 Safari/537.15 Surf/"VERSION;
|
|
||||||
static char *scriptfile = "~/.surf/script.js";
|
static char *scriptfile = "~/.surf/script.js";
|
||||||
static char *styledir = "~/.surf/styles/";
|
static char *styledir = "~/.surf/styles/";
|
||||||
static char *cachefolder = "~/.surf/cache/";
|
static char *cachedir = "~/.surf/cache/";
|
||||||
|
|
||||||
static Bool kioskmode = FALSE; /* Ignore shortcuts */
|
|
||||||
static Bool showindicators = TRUE; /* Show indicators in window title */
|
|
||||||
static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */
|
|
||||||
static Bool runinfullscreen = FALSE; /* Run in fullscreen mode by default */
|
|
||||||
|
|
||||||
static guint defaultfontsize = 12; /* Default font size */
|
|
||||||
static gfloat zoomlevel = 1.0; /* Default zoom level */
|
|
||||||
|
|
||||||
/* Soup default features */
|
|
||||||
static char *cookiefile = "~/.surf/cookies.txt";
|
static char *cookiefile = "~/.surf/cookies.txt";
|
||||||
static char *cookiepolicies = "Aa@"; /* A: accept all; a: accept nothing,
|
|
||||||
* @: accept all except third party */
|
|
||||||
static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
|
|
||||||
static Bool strictssl = FALSE; /* Refuse untrusted SSL connections */
|
|
||||||
static time_t sessiontime = 3600;
|
|
||||||
|
|
||||||
/* Webkit default features */
|
/* Webkit default features */
|
||||||
static Bool enablescrollbars = TRUE;
|
static Parameter defconfig[ParameterLast] = {
|
||||||
static Bool enablespatialbrowsing = TRUE;
|
SETB(AcceleratedCanvas, 1),
|
||||||
static Bool enablediskcache = TRUE;
|
SETB(CaretBrowsing, 0),
|
||||||
static int diskcachebytes = 5 * 1024 * 1024;
|
SETV(CookiePolicies, "@Aa"),
|
||||||
static Bool enableplugins = TRUE;
|
SETB(DiskCache, 1),
|
||||||
static Bool enablescripts = TRUE;
|
SETB(DNSPrefetch, 0),
|
||||||
static Bool enableinspector = TRUE;
|
SETI(FontSize, 12),
|
||||||
static Bool enablestyle = TRUE;
|
SETB(FrameFlattening, 0),
|
||||||
static Bool loadimages = TRUE;
|
SETB(Geolocation, 0),
|
||||||
static Bool hidebackground = FALSE;
|
SETB(HideBackground, 0),
|
||||||
static Bool allowgeolocation = TRUE;
|
SETB(Inspector, 0),
|
||||||
|
SETB(JavaScript, 1),
|
||||||
|
SETB(KioskMode, 0),
|
||||||
|
SETB(LoadImages, 1),
|
||||||
|
SETB(MediaManualPlay, 0),
|
||||||
|
SETB(Plugins, 1),
|
||||||
|
SETV(PreferredLanguages, ((char *[]){ NULL })),
|
||||||
|
SETB(RunInFullscreen, 0),
|
||||||
|
SETB(ScrollBars, 1),
|
||||||
|
SETB(ShowIndicators, 1),
|
||||||
|
SETB(SiteQuirks, 1),
|
||||||
|
SETB(SpellChecking, 0),
|
||||||
|
SETV(SpellLanguages, ((char *[]){ "en_US", NULL })),
|
||||||
|
SETB(StrictSSL, 0),
|
||||||
|
SETB(Style, 1),
|
||||||
|
SETF(ZoomLevel, 1.0),
|
||||||
|
};
|
||||||
|
|
||||||
|
static UriParameters uriparams[] = {
|
||||||
|
{ "(://|\\.)suckless\\.org(/|$)", {
|
||||||
|
FSETB(JavaScript, 0),
|
||||||
|
FSETB(Plugins, 0),
|
||||||
|
}, },
|
||||||
|
};
|
||||||
|
|
||||||
|
static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
||||||
|
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
|
||||||
|
|
||||||
#define SETPROP(p, q) { \
|
#define SETPROP(p, q) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"prop=\"`xprop -id $2 $0 " \
|
"prop=\"`xprop -id $2 $0 " \
|
||||||
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
|
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
|
||||||
"| xargs -0 printf %b | dmenu`\" &&" \
|
"| xargs -0 printf %b | dmenu`\" &&" \
|
||||||
@@ -47,7 +57,7 @@ static Bool allowgeolocation = TRUE;
|
|||||||
|
|
||||||
/* DOWNLOAD(URI, referer) */
|
/* DOWNLOAD(URI, referer) */
|
||||||
#define DOWNLOAD(d, r) { \
|
#define DOWNLOAD(d, r) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"st -e /bin/sh -c \"curl -g -L -J -O --user-agent '$1'" \
|
"st -e /bin/sh -c \"curl -g -L -J -O --user-agent '$1'" \
|
||||||
" --referer '$2' -b $3 -c $3 '$0';" \
|
" --referer '$2' -b $3 -c $3 '$0';" \
|
||||||
" sleep 5;\"", \
|
" sleep 5;\"", \
|
||||||
@@ -60,11 +70,18 @@ static Bool allowgeolocation = TRUE;
|
|||||||
* "http://" or "https://" should be opened.
|
* "http://" or "https://" should be opened.
|
||||||
*/
|
*/
|
||||||
#define PLUMB(u) {\
|
#define PLUMB(u) {\
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
"xdg-open \"$0\"", u, NULL \
|
"xdg-open \"$0\"", u, NULL \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* VIDEOPLAY(URI) */
|
||||||
|
#define VIDEOPLAY(u) {\
|
||||||
|
.v = (const char *[]){ "/bin/sh", "-c", \
|
||||||
|
"mpv --really-quiet \"$0\"", u, NULL \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
/* styles */
|
/* styles */
|
||||||
/*
|
/*
|
||||||
* The iteration will stop at the first match, beginning at the beginning of
|
* The iteration will stop at the first match, beginning at the beginning of
|
||||||
@@ -83,61 +100,67 @@ static SiteStyle styles[] = {
|
|||||||
* edit the CLEANMASK() macro.
|
* edit the CLEANMASK() macro.
|
||||||
*/
|
*/
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier keyval function arg Focus */
|
/* modifier keyval function arg */
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
|
{ MODKEY, GDK_KEY_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
||||||
{ MODKEY, GDK_r, reload, { .b = FALSE } },
|
{ MODKEY, GDK_KEY_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
|
{ MODKEY, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
||||||
|
|
||||||
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
|
{ 0, GDK_KEY_Escape, stop, { 0 } },
|
||||||
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
|
{ MODKEY, GDK_KEY_c, stop, { 0 } },
|
||||||
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .b = 1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
|
{ MODKEY, GDK_KEY_r, reload, { .b = 0 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_q, zoom, { .i = 0 } },
|
|
||||||
{ MODKEY, GDK_minus, zoom, { .i = -1 } },
|
|
||||||
{ MODKEY, GDK_plus, zoom, { .i = +1 } },
|
|
||||||
|
|
||||||
{ MODKEY, GDK_l, navigate, { .i = +1 } },
|
{ MODKEY, GDK_KEY_l, navigate, { .i = +1 } },
|
||||||
{ MODKEY, GDK_h, navigate, { .i = -1 } },
|
{ MODKEY, GDK_KEY_h, navigate, { .i = -1 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_j, scroll_v, { .i = +1 } },
|
/* Currently we have to use scrolling steps that WebKit2GTK+ gives us
|
||||||
{ MODKEY, GDK_k, scroll_v, { .i = -1 } },
|
* d: step down, u: step up, r: step right, l:step left
|
||||||
{ MODKEY, GDK_b, scroll_v, { .i = -10000 } },
|
* D: page down, U: page up */
|
||||||
{ MODKEY, GDK_space, scroll_v, { .i = +10000 } },
|
{ MODKEY, GDK_KEY_j, scroll, { .i = 'd' } },
|
||||||
{ MODKEY, GDK_i, scroll_h, { .i = +1 } },
|
{ MODKEY, GDK_KEY_k, scroll, { .i = 'u' } },
|
||||||
{ MODKEY, GDK_u, scroll_h, { .i = -1 } },
|
{ MODKEY, GDK_KEY_b, scroll, { .i = 'U' } },
|
||||||
|
{ MODKEY, GDK_KEY_space, scroll, { .i = 'D' } },
|
||||||
|
{ MODKEY, GDK_KEY_i, scroll, { .i = 'r' } },
|
||||||
|
{ MODKEY, GDK_KEY_u, scroll, { .i = 'l' } },
|
||||||
|
|
||||||
{ 0, GDK_F11, fullscreen, { 0 } },
|
|
||||||
{ 0, GDK_Escape, stop, { 0 } },
|
|
||||||
{ MODKEY, GDK_o, source, { 0 } },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_o, inspector, { 0 } },
|
|
||||||
|
|
||||||
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_j, zoom, { .i = -1 } },
|
||||||
{ MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_k, zoom, { .i = +1 } },
|
||||||
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_q, zoom, { .i = 0 } },
|
||||||
|
{ MODKEY, GDK_KEY_minus, zoom, { .i = -1 } },
|
||||||
|
{ MODKEY, GDK_KEY_plus, zoom, { .i = +1 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_n, find, { .b = TRUE } },
|
{ MODKEY, GDK_KEY_p, clipboard, { .b = 1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
|
{ MODKEY, GDK_KEY_y, clipboard, { .b = 0 } },
|
||||||
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_c, toggle, { .v = "enable-caret-browsing" } },
|
{ MODKEY, GDK_KEY_n, find, { .i = +1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_i, toggle, { .v = "auto-load-images" } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_n, find, { .i = -1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_s, toggle, { .v = "enable-scripts" } },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_v, toggle, { .v = "enable-plugins" } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_a, togglecookiepolicy, { 0 } },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_m, togglestyle, { 0 } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_a, togglecookiepolicy, { 0 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_b, togglescrollbars, { 0 } },
|
{ 0, GDK_KEY_F11, togglefullscreen, { 0 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_g, togglegeolocation, { 0 } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, toggleinspector, { 0 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_y, toggleproxy, { 0 } },
|
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_c, toggle, { .i = CaretBrowsing } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_f, toggle, { .i = FrameFlattening } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, toggle, { .i = Geolocation } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
/* click can be ClkDoc, ClkLink, ClkImg, ClkMedia, ClkSel, ClkEdit, ClkAny */
|
/* target can be OnDoc, OnLink, OnImg, OnMedia, OnEdit, OnBar, OnSel, OnAny */
|
||||||
static Button buttons[] = {
|
static Button buttons[] = {
|
||||||
/* click event mask button function argument */
|
/* target event mask button function argument stop event */
|
||||||
{ ClkLink, 0, 2, linkopenembed, { 0 } },
|
{ OnLink, 0, 2, clicknewwindow, { .b = 0 }, 1 },
|
||||||
{ ClkLink, MODKEY, 2, linkopen, { 0 } },
|
{ OnLink, MODKEY, 2, clicknewwindow, { .b = 1 }, 1 },
|
||||||
{ ClkLink, MODKEY, 1, linkopen, { 0 } },
|
{ OnLink, MODKEY, 1, clicknewwindow, { .b = 1 }, 1 },
|
||||||
{ ClkAny, 0, 8, navigate, { .i = -1 } },
|
{ OnAny, 0, 8, clicknavigate, { .i = -1 }, 1 },
|
||||||
{ ClkAny, 0, 9, navigate, { .i = +1 } },
|
{ OnAny, 0, 9, clicknavigate, { .i = +1 }, 1 },
|
||||||
|
{ OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,27 @@
|
|||||||
# surf version
|
# surf version
|
||||||
VERSION = 1.8
|
VERSION = 2.0
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
# paths
|
# paths
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
LIBPREFIX = ${PREFIX}/lib/surf
|
||||||
|
|
||||||
X11INC = /usr/X11R6/include
|
X11INC = /usr/X11R6/include
|
||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0`
|
GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
|
||||||
GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0`
|
GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
|
||||||
|
|
||||||
# includes and libs
|
# includes and libs
|
||||||
INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
|
INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
|
||||||
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
|
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
|
||||||
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||||
LDFLAGS = -g ${LIBS}
|
LDFLAGS = -s ${LIBS}
|
||||||
|
|
||||||
# Solaris
|
# Solaris
|
||||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
|
|||||||
@@ -221,9 +221,6 @@ Toggle script execution. This will reload the page.
|
|||||||
Toggle the enabling of plugins on that surf instance. This will reload the
|
Toggle the enabling of plugins on that surf instance. This will reload the
|
||||||
page.
|
page.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-y
|
|
||||||
Toggle if a proxy should be used (if one is set in the environment).
|
|
||||||
.TP
|
|
||||||
.B F11
|
.B F11
|
||||||
Toggle fullscreen mode.
|
Toggle fullscreen mode.
|
||||||
.SH INDICATORS OF OPERATION
|
.SH INDICATORS OF OPERATION
|
||||||
@@ -286,13 +283,6 @@ string
|
|||||||
.TP
|
.TP
|
||||||
.B http_proxy
|
.B http_proxy
|
||||||
If this variable is set and not empty upon startup, surf will use it as the http proxy
|
If this variable is set and not empty upon startup, surf will use it as the http proxy
|
||||||
.TP
|
|
||||||
.B no_proxy
|
|
||||||
If both http_proxy is set and no_proxy contain a
|
|
||||||
.BR comma-separated
|
|
||||||
list of domain extensions and both is not empty upon startup, proxy will
|
|
||||||
.BR not
|
|
||||||
be used for each of the elements in no_proxy.
|
|
||||||
.SH PLUGINS
|
.SH PLUGINS
|
||||||
For using plugins in surf, first determine your running architecture. Then get
|
For using plugins in surf, first determine your running architecture. Then get
|
||||||
the appropriate plugin for that architecture and copy it to
|
the appropriate plugin for that architecture and copy it to
|
||||||
|
|||||||
Reference in New Issue
Block a user