summaryrefslogtreecommitdiff
path: root/man1/lariza.usage.1
blob: 86651f4824aa43eee2bb68df4c7bb930b09cb91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
.Dd Jul 17, 2021
.Dt lariza.usage 1
.Sh NAME
.Nm lariza
.Nd extended usage hints
.Sh DESCRIPTION
.Nm
is a simple web browser using GTK+3, GLib and WebKit2GTK+. This manpage contains
additional hints and pointers regarding its usage.
.Sh HOTKEYS
.Ss Global hotkeys
These hotkeys work when either the location bar or the web view is being
focused.
.Bl -tag
.It Sy Ctrl + q
Close the current window. Quits the entire program if this was the last window
and if there are no more active downloads
.Pq download manager is shown otherwise .
.It Sy Ctrl + w
Go to your
.Dq homepage .
See the environment variable
.Sy $LARIZA_HOME_URI .
.It Sy Ctrl + t
Open a new window .
.Ir Sy Ctrl + r
Reload the current page.
.It Sy Ctrl + d
Open the download manager.
.It Sy Ctrl + o
Focus the location bar.
.It Sy Ctrl + f
Focus the location bar and set its text to
.Dq :/ ,
allowing you to easily initiate a search.
.It Sy Ctrl + s
Focus the location bar and set its text to
.Dq !/ ,
allowin you to search through the search engine.
.It Sy Ctrl + 2 , Ctrl + n
Repeat the last search
.Pq forward .
.It Sy Ctrl + 3
Repeat the last search
.Pq backward .
.It Sy Ctrl + c
Reload trusted certificates.
.It Sy Ctrl + k / Ctrl + j
Select tab to the left / right.
.It Sy F2 / F3
Go backward / forward in current browser history.
.El
.Ss Main window - WebKit viewport focused
.Bl -tag
.It Sy Escape
Stop loading.
.It Sy Middle mouse
Open the link under the pointer in a new window.
.It Sy Backward / forward Pq mouse keys 8 and 9
Same as F2 and F3.
.It Sy Ctrl + Scroll up / down
Increase / decrease zoom level of the current page.
.It Sy Ctrl + Scroll horizontally
Reset zoom to
.Sy $LARIZA_ZOOM .
.El
.Ss Main window - location bar focused
.Bl -tag
.It Sy Escape
Reset the content of the location bar to the current URI.
.It Sy Return
Commit, i.e. begin searching or open the URI.
.El
.Ss Download manager
.Bl -tag
.It Sy Ctrl + d , Ctrl + q
Close the download manager. Active downloads are never aborted. However, if
there are no more active downloads and no more browsing windows, then the entire
program will quit.
.Sh DOWNLOAD MANAGER
Open the download manager using the appropriate hotkey. A new window listing
your downloads will appear. Clicking on an item will remove it from the list
and - if needed - cancel the download.
.Pp
There's no file manager integration, nor does
.Nm
delete, overwrite or resume downloads. If a file already exists, it won't be
touched. Instead, the new file name will have a suffix such as
.Sy .1 , .2 , .3 ,
and so on.
.Sh USER-SUPPLIED JAVASCRIPT FILES
After a page has been successfully loaded, the directory
.Pa ~/.config/lariza/user-scripts
will be scanned and each file in it ending with
.Dq .js
will be run as a JavaScript file in the context of said page.
.Pp
During development, you will most likely want to run
.Nm
with
.Sy $LARIZA_ENABLE_CONSOLE_TO_STDOUT
enabled.
.Pp
.Nm
comes with the following scripts:
.Bl -tag
.It Sy hints.js
Press
.Sy f
.Pq open link in current window
or
.Sy F
.Pq open in new window
to activate link hints. After typing the characters for one of them press
.Sy Return
to confirm.
Press
.Sy Escape
to abort.
.El
.Pp
Those bundled scripts are automatically installed on
.Sy make install .
To use them, though, make sure to link them to the directory mentioned above.
.Sh WEB EXTENSIONS
On startup, WebKit checks
.Pa ~/.config/lariza/web_extensions
for any
.Sy .so
files. See this blog post
.Lk http://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/
for further information on these extensions.
.Pp
.Nm
comes with the following extensions:
.Bl -tag
.It Sy we_adblock.so
Generic adblock. Reads patterns from the file
.Pa ~/.config/lariza/adblock .
Each line can contain a regular expression. These expressions match
case-insensitive and partially, i.e.
.Sy .*foo.*
is the same as
.Sy .*FOO.*
and you can use anchors like
.Sy ^https?://... .
Please refer to the GLib reference
.Lk https://developer.gnome.org/glib/stable/glib-regex-syntax.html
for more details. Lines starting with
.Sy #
are ignored.
.El
Those bundled web extensions are automatically compiled when you run
.Sy make
and installed on
.Sy make install .
To use them, though, make sure to link them to the directory mentioned above.
.Sh TRUSTED CERTIFICATES
By default,
.Nm
trusts whatever CAs are trusted by WebKit. If you wish to trust additional
certificates, such as self-signed certificates, the first thing you should do is
try to add the appropriate CAs to your system-wide store.
.Pp
If you wish to add simple exceptions, you can grab the certificate and store it
in the directory
.Pa ~/.config/lariza/certs .
The filename must be equal to the hostname:
.Bd -literal -offset indent
$ echo | openssl s_client -connect foo.de:443 | openssl x504 > foo.de
.Ed
.Pp
This tells
.Nm
to trust the given certificate when connecting to host
.Sy foo.de .
.Pp
You can reload these certificates at runtime by pressing the appropriate hotkey.
Note that removed certificates will be kept in memory until you restart
.Nm .
.Pp
Note: This is NOT equal to certificate pinning. WebKit ignores user-specified
certificates if the server's certificate can be validated by any system-wide CA.
.Sh SEE ALSO
.Xr lariza 1