SURF(1)

🌸 NAME 🌸

surf β€” simple webkit-based browser πŸ¦‹πŸ’…

okay bestie so like, imagine a browser that's just a browser. no tabs, no bloat, no weird sidebar trying to sell you something. that's surf. she's tiny, she's webkit-based, and she is iconic. ✨


✨ SYNOPSIS ✨

surf [-bBdDfFgGiIkKmMnNpPsStTvwxX] [-a cookiepolicies] [-c cookiefile]
[-C stylefile] [-e xid] [-r scriptfile] [-u useragent] [-z zoomlevel]
[URI]

like yes, that's a LOT of flags, but don't panic β€” they're all just lil on/off toggles and a few "here's a file" moments. iykyk 🫢


πŸ’– DESCRIPTION πŸ’–

surf is a simple Web browser based on WebKit/GTK+. she can display websites and follow links, which, you know, is the whole job. slay. πŸ”₯

she also supports the XEmbed protocol, which means it's possible to embed her inside another application β€” yes she can be a little passenger in your bigger app, main character energy in a supporting role, we love versatility. πŸ’…

and furthermore (love a furthermore), you can point surf to another URI by setting its XProperties. so you can yeet her at a new URL from the outside. no cap. πŸ¦‹


πŸŽ€ OPTIONS πŸŽ€

  • -a cookiepolicies β€” Define the order of cookie policies. The default is "@Aa" but could be redefined in the config.h, with "A" meaning to accept all cookies, "a" to deny all cookies and "@", which tells surf to accept no third party cookies. πŸͺ
  • -b β€” Disable Scrollbars.
  • -B β€” Enable Scrollbars.
  • -c cookiefile β€” Specify the cookiefile to use.
  • -C stylefile β€” Specify the user stylefile. This does disable the site-specific styles. (so like, your CSS ate, but the site's CSS is gone πŸ’€)
  • -d β€” Disable the disk cache.
  • -D β€” Enable the disk cache.
  • -e xid β€” Reparents to window specified by xid.
  • -f β€” Start surf in windowed mode (not fullscreen).
  • -F β€” Start surf in fullscreen mode.
  • -g β€” Disable giving the geolocation to websites.
  • -G β€” Enable giving the geolocation to websites.
  • -i β€” Disable Images.
  • -I β€” Enable Images.
  • -k β€” Disable kiosk mode (enable key strokes and right click).
  • -K β€” Enable kiosk mode (disable key strokes and right click).
  • -m β€” Disable application of user style sheets.
  • -M β€” Enable application of user style sheets.
  • -n β€” Disable the Web Inspector (Developer Tools).
  • -N β€” Enable the Web Inspector (Developer Tools).
  • -r scriptfile β€” Specify the user scriptfile.
  • -s β€” Disable Javascript.
  • -S β€” Enable Javascript.
  • -t β€” Disable strict TLS check.
  • -T β€” Enable strict TLS check.
  • -u useragent β€” Specify the useragent which surf should use.
  • -v β€” Prints version information to standard output, then exits. (she says hi then dips πŸ‘‹)
  • -w β€” Prints xid to standard output. This can be used to script the browser in for example xdotool(1).
  • -x β€” Disable custom certificates.
  • -X β€” Enable custom certificates.
  • -z zoomlevel β€” Specify the zoomlevel which surf should use.
notice the pattern bestie? lowercase = disable, uppercase = enable. it's giving "one button, two moods" πŸ’…βœ¨

🌈 USAGE 🌈

keyboard shortcuts, aka her love language:

  • Escape β€” Stops loading current page or stops download. πŸ›‘
  • Ctrl-h β€” Walks back the history.
  • Ctrl-l β€” Walks forward the history.
  • Ctrl-k β€” Scrolls page upwards.
  • Ctrl-j β€” Scrolls page downwards.
  • Ctrl-b β€” Scroll up one whole page view.
  • Ctrl-Space β€” Scroll down one whole page view.
  • Ctrl-i β€” Scroll horizontally to the right.
  • Ctrl-u β€” Scroll horizontally to the left.
  • Ctrl-Shift-k or Ctrl-+ β€” Zooms page in. πŸ”
  • Ctrl-Shift-j or Ctrl-- β€” Zooms page out.
  • Ctrl-Shift-q β€” Resets Zoom.
  • Ctrl-f and Ctrl-/ β€” Opens the search-bar.
  • Ctrl-n β€” Go to next search result.
  • Ctrl-Shift-n β€” Go to previous search result.
  • Ctrl-g β€” Opens the URL-bar (requires dmenu installed).
  • Ctrl-p β€” Loads URI from primary selection.
  • Ctrl-Shift-p β€” Calls Printpage Dialog.
  • Ctrl-r β€” Reloads the website.
  • Ctrl-Shift-r β€” Reloads the website without using the cache. (hard refresh queen 🧚)
  • Ctrl-y β€” Copies current URI to primary selection.
  • Ctrl-t β€” Display the current TLS certificate in a popup window.
  • Ctrl-Shift-a β€” Toggle through the the cookie policies. This will not reload the page.
  • Ctrl-Shift-b β€” Toggle scrollbars. This will reload the page.
  • Ctrl-Shift-c β€” Toggle caret browsing. This will reload the page.
  • Ctrl-Shift-d β€” Toggle dark mode.
  • Ctrl-Shift-i β€” Toggle auto-loading of images. This will reload the page.
  • Ctrl-Shift-m β€” Toggle if the stylefile file should be loaded. This will reload the page.
  • Ctrl-Shift-o β€” Open the Web Inspector (Developer Tools) window for the current page.
  • Ctrl-Shift-s β€” Toggle script execution. This will reload the page.
  • Ctrl-Shift-t β€” Toggle strict TLS check. This will reload the page.
  • F11 β€” Toggle fullscreen mode. πŸ‘‘

πŸ‘€ INDICATORS OF OPERATION πŸ‘€

Surf is showing indicators of operation in front of the site title. For all indicators, unless otherwise specified, a lower case letter means disabled and an upper case letter means enabled. it's a vibe check at a glance, fr fr.

  • A β€” all cookies accepted
  • a β€” no cookies accepted
  • @ β€” all except third-party cookies accepted
  • c C β€” caret browsing
  • g G β€” geolocation
  • d D β€” disk cache
  • i I β€” images
  • s S β€” scripts
  • m M β€” styles
  • x X β€” custom certificates
  • t T β€” strict TLS

πŸ¦‹ INDICATORS OF WEB PAGE πŸ¦‹

The second part of the indicators specifies modes of the web page itself. yes she has layers. πŸ’…

First character: encryption

  • - β€” unencrypted
  • T β€” encrypted (TLS)
  • U β€” attempted encryption but failed

Second character: proxying

  • - β€” no proxy
  • P β€” using proxy

🌱 ENVIRONMENT 🌱

  • http_proxy β€” If this variable is set and not empty upon startup, surf will use it as the http proxy.

πŸ“£ SIGNALS πŸ“£

Surf will reload the current page on SIGHUP.


πŸ”— SEE ALSO πŸ”—

dmenu(1), xprop(1), tabbed(1), xdotool(1)


πŸ› BUGS πŸ›

Please report them! (she's not mad, she just wants to grow 🫢✨)


and that's the whole page bestie, no notes, you understood all of it, i'm so proud of you πŸ’–βœ¨πŸŽ€

this lil manual is from surf-2.1 β€” so like, go forth, browse simple, stay iconic. periodt. πŸ‘‘πŸ’…πŸŒΈ

πŸ“¦ where this page comes from