lariza

lariza is a simple web browser using GTK+ 2, GLib and WebKitGTK+. Its features include adblocking, keyword-based searching, a download manager and global content zoom. It provides built-in launching of suckless' tabbed to create tabs with instances of lariza. Additionally it supports the XEmbed protocol which makes it possible to embed it in another application.

Installation

lariza is available on github.

To build lariza, do the following:

$ git clone https://github.com/vain/lariza.git
$ cd lariza && make

Also make sure you install tabbed if you want to use lariza in tabs in one window. An alternative is to use a windowmanager which supports tabbing - like i3, PekWM or fluxbox.

Configuration

Environment variables

You can customize some settings by using environment variables in your shell's rc file:

export LARIZA_ACCEPTED_LANGUAGE=en-US # set Accepted-Language header
export LARIZA_DOWNLOAD_DIR=/home/myUser/dump # download directory
export LARIZA_ZOOM=1.0 # default zoom level
export LARIZA_HOME_URI=https://duckduckgo.com/ # "homepage"

Adblock

Adblock can be configured by creating a file ~/.config/lariza/adblock.black with regular expressions like this:

.*/ad/.*
.*/ads/.*
^https?://ad.*
^https?://advert.*
^https?://.*\.advertising\.com/

Lines starting with "#" are ignored.

Keyword based searching:

Keyword based searching can be configured by creating a file ~/.config/lariza/keywordsearch with expressions like this:

du https://duckduckgo.com/?q=%s
wi https://en.wikipedia.org/w/index.php?title=Special:Search&search=%s
go https://www.google.de/?gws_rd=ssl#q=%s
yt http://www.youtube.com/results?search_query=%s

Each line consists of a keyword and a URI to be used for searching. So if you type "go archlinux" into the address box, it will use Google to search for "archlinux" by using the URI https://www.google.de/?gws_rd=ssl#q=archlinux.

Lines starting with "#" are ignored.

Using lariza

You can provide multiple URI's to open when starting lariza:

$ lariza https://archlinux.org http://google.com

For the complete documentation, please have a look at the github pages.

See also