Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Surf -

From Void Linux Wiki
Jump to navigation Jump to search

Surf is a minimalist web browser.
From suckless.org:

surf is a simple web browser based on WebKit2/GTK+. It is able to display websites and follow links. It supports the XEmbed protocol which makes it possible to embed it in another application.


The recommended way to install surf would be to download the source code and compile it yourself, however, that does come with some challenges. The program is available in the Void Linux repository for people who just want to download it and use it, though it is not very feature rich by default.

# xbps-install -S surf

Surf does not have a configuration file, as suckless applications typically opt to patch features into the source code rather than do configuration files. However, some features can be added into the ~/.surf/script.js file. This file is javascript that loads on every web page. For example it is possible to add vim key bindings via this file.

There is also a default styles file located in ~/.surf/styles/default.css which will add desired CSS into all web pages visited using surf.

Optional Dependencies

- Surf can be pointed to a new URL by changing its XProperties.[1] The functionality to do this with dmenu and xprop is already built in to surf: the shortcut to invoke dmenu within surf is CTRL-G.
  1. https://surf.suckless.org/