3 .\" Copyright (c) 2010, 2011 Marco Peereboom <marco@peereboom.us>
4 .\" Copyright (c) 2011 Jason McIntyre <jmc@kerhand.co.uk>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 .Nd lightweight web browser
33 is a minimalistic web browser that tries to stay out of the way so that
34 valuable screen real estate can be used for much more important stuff.
35 It has sane defaults and does not require one to learn a language to do any
37 It was written by hackers for hackers
38 and it strives to be small, compact, and fast.
41 is very simple in its use.
42 Most actions are initiated via key or mouse bindings.
43 Key bindings are based on those of the
46 giving web browsing a similar feel to navigating a text document.
49 section below documents the various defaults and possible customizations.
51 The options are as follows:
54 Specify an alternative configuration file.
58 Disable visualization of tabs.
62 Open a new tab in a running
64 for each specified URL.
69 Display version and exit.
72 The following notation is used throughout this page:
74 .Bl -tag -width Ds -offset indent -compact
78 Meta (sometimes marked Alt)
85 To browse to a specific address,
86 either use the mouse to click on the address bar
89 to shift the keyboard focus to the address bar.
90 The address is then entered manually.
92 The mouse can be used to navigate the page in the traditional manner,
93 or the keyboard can be used instead.
98 will scroll up and down the page.
101 either click on it or use the
105 assign numbers to each link on the page;
106 entering that number on the keyboard will prompt
111 provides many actions accessed via key or mouse bindings.
112 Note that WebKit & GTK+ have their own set of key bindings
113 that are not overruled and therefore are available as-is.
115 These commands are used to search for text strings within a web page.
117 .Bl -tag -width Ds -offset indent -compact
121 Start a backwards search
123 Next item matching search
125 Previous item matching search
128 These commands are used to shift the focus of
130 from one area to another.
132 .Bl -tag -width Ds -offset indent -compact
136 Focus on search entry
139 These commands allow the user to map specific actions to specific keys.
140 It can be useful when the
144 .Bl -tag -width Ds -offset indent -compact
148 Alias for ":open current-uri"
152 Alias for ":tabnew current-uri"
154 .Ss Navigation Commands
155 These commands allow the user to navigate web pages and,
159 .Bl -tag -width "Space, C-f, PageDownXXX" -offset indent -compact
163 Reload page without using any cached data
164 .It Cm Backspace, M-Left
166 .It Cm S-BackSpace, M-Right
171 Previous line on page
176 .It Cm Space, C-f, PageDown
199 Toggle Java Script enabled for FQDN.
203 Toggle cookie enabled for FQDN.
207 supports tabbed browsing.
208 That is, web pages may be opened in separate tabs,
209 allowing the user to quickly move from one page to another,
211 These commands then are used to create, destroy, and move between tabs.
213 .Bl -tag -width "C-plus, C-equalXXX" -offset indent -compact
215 Open new tab with the clicked link
217 Create new tab with focus in URL entry
223 Go to the previous tab
230 Shrink font size by one point
231 .It Cm C-plus, C-equal
232 Grow font size by one point
234 .Ss Yanking and pasting
235 These commands copy and paste text to and from the clipboard.
237 .Bl -tag -width Ds -offset indent -compact
239 Paste the contents of the clipboard into the address bar
241 Paste the contents of the clipboard into a new tab
243 Yank the current URL into the clipboard
245 .Ss Hyperlink Following
246 This allows the user to follow hyperlinks
247 without using a mouse.
248 Enter the corresponding number to follow the link.
249 Alternatively one can type the name of the link and when there are no more
252 will follow the link.
254 .Bl -tag -width Ds -offset indent -compact
256 Highlight all links and prefix them with a number.
259 Commands to exit the browser.
261 .Bl -tag -width Ds -offset indent -compact
266 Command mode works in a similar fashion to the
269 it is entered by typing a colon and exited by typing Esc.
270 The commands and their descriptions are listed below.
271 .Bl -tag -width Ds -offset indent
272 .It Cm about , version
273 Show the "About" page.
275 Display CA certificates.
276 .It Cm cert , cert show
277 Download and display certificates of domain on tab.
279 Save certificate into a local store.
280 The next time the site is visited it is compared against the store.
281 If the certificate matches,
282 the address bar will be blue;
283 if it doesn't the bar will be red.
287 command is used to manipulate the cookie whitelist.
288 Used by itself it expands to
289 .Cm cookie show all .
291 Show cookie jar contents.
292 .It Cm cookie save, cookie save fqdn
293 Save the current fully qualified domain name (FQDN)
294 to the persistent whitelist.
296 the www.peereboom.us domain would result in saving .www.peereboom.us.
297 .It Cm cookie save domain
298 Save the top level domain name to the persistent whitelist.
300 the www.peereboom.us domain would result in saving .peereboom.us.
302 This action enables cookies if it is currently disabled for this entry.
303 .It Cm cookie show all
304 Show all persistent and session entries in the cookie whitelist.
305 .It Cm cookie show persistent
306 Show all persistent entries in the cookie whitelist.
307 .It Cm cookie show session
308 Show all session entries in the cookie whitelist.
309 .It Cm cookie toggle domain
310 Toggle cookie support for the current top level domain.
311 .It Cm cookie toggle, cookie toggle fqdn
312 Toggle Java Script execution for the current FQDN.
314 Show download manager.
318 Add the current page to favorites.
319 .It Cm fullscreen , f
320 Toggle hiding tabs and url entry toolbar.
321 .It Cm h , hist , history
330 command is used to manipulate the Java Script whitelist.
331 Used by itself it expands to
333 .It Cm js save, save fqdn
334 Saves the FQDN to the persistent whitelist.
336 the www.peereboom.us domain would result in saving .www.peereboom.us.
337 .It Cm js save domain
338 Saves the top level domain name to the persistent whitelist.
340 the www.peereboom.us domain would result in saving .peereboom.us.
342 This action enables Java Script if it is currently disabled for this entry.
344 Shows all persistent and session entries in the JS whitelist.
345 .It Cm js show persistent
346 Shows all persistent entries in the JS whitelist.
347 .It Cm js show session
348 Shows all session entries in the JS whitelist.
349 .It Cm js toggle, js toggle fqdn
350 Toggle Java Script execution for the current FQDN.
351 .It Cm js toggle domain
352 Toggle Java Script execution for the current top level domain.
353 .It Cm open , op , o URL
361 Close current tab and quit
363 if it is the last tab.
367 and reload all current tabs.
368 .It Cm session , Cm session show
369 Display the current session name.
370 By default the session name is main_session.
371 To create a new session use the
374 A session is defined as the lifetime of the browser application.
375 .It Cm session delete <session_name>
376 Delete session session_name from persistent storage.
377 If session_name is the current session then the session will revert to
379 .It Cm session open <session_name>
380 Open session_name and close all currently open tabs.
381 Going forward this session is named session_name.
382 .It Cm session save <session_name>
383 Save current tabs to session_name session.
384 This will close the current session and going forward this session is named
387 Show blocked cookie statistics.
388 These statistics vary based on settings and are not persistent.
389 .It Cm tabclose , tabc
391 .It Cm tabhide , tabh
393 .It Cm tabnew , tabedit , tabe URL
394 Create new tab and optionally open provided URL.
395 .It Cm tabnext , tabn
397 .It Cm tabprevious , tabp
398 Go to the previous tab.
399 .It Cm tabshow , tabs
401 .It Cm urlhide , urlh
402 Hide url entry and toolbar.
403 .It Cm urlshow , urls
404 Show url entry and toolbar.
406 Save open tabs to current session.
407 The tabs will be restored next time
409 the session is opened.
410 See the session command for additional details.
412 Save open tabs and quit.
413 The tabs will be restored next time
415 the session is opened.
416 See the session command for additional details.
420 has a number of whitelists to control blocking cookies and Java Script
421 execution for FQDNs or domains.
422 When properly enabled these whitelists require either the FQDN or top level
423 domain to exist in the whitelists in order to allow cookies to be stored or
424 Java Script to execute.
425 Both Java Script and cookies have two whitelists associated with them.
426 The whitelists are called session and persistent.
427 Items in the session whitelists are only allowed for the lifetime of the
430 Items in the persistent whitelists are stored on disk and are restored
433 Setting up the whitelists is a little tricky due to intricacies of WebKit.
434 In fact the semantics are different for cookies and Java Script.
436 Cookie whitelist requires the following configuration to be set:
437 .Bl -tag -width "enable_cookie_whitelistXXX" -offset indent -compact
438 .It Cm cookies_enabled
439 This is a WebKit setting and must be set to
441 in order to be able to use a
443 .It Cm enable_cookie_whitelist
444 This needs to be set to
446 to enable the cookie whitelist functionality.
448 These entries in the configuration file are the actual domains names in the
452 Java Script whitelist requires the following configuration to be set:
453 .Bl -tag -width "enable_js_whitelistXXX" -offset indent -compact
454 .It Cm enable_scripts
455 This is a WebKit setting and must be set to
457 in order to be able to use a
458 Java Script whitelist.
459 .It Cm enable_js_whitelist
460 This needs to be set to
462 to enable the Java Script whitelist functionality.
464 These entries in the configuration file are the actual domains names in the
465 Java Script whitelist.
470 section for additional configuration file entries and details
471 that alter runtime behavior.
474 .Bl -tag -width "/etc/xxxterm.confXXX" -compact
475 .It Pa ~/.xxxterm.conf
477 user specific settings.
484 tries to open the user specific file,
485 .Pa ~/.xxxterm.conf .
486 If that file is unavailable,
487 it then uses built-in defaults.
489 The format of the file is \*(Ltkeyword\*(Gt = \*(Ltsetting\*(Gt.
492 .Dl http_proxy = http://127.0.0.1:8080
494 Enabling or disabling an option is done by using 1 or 0 respectively.
496 The file supports the following keywords:
498 .Bl -tag -width "enable_cookie_whitelistXXX" -offset indent -compact
500 Defines an alias for a given URL, so that the URL is loaded when the alias is
501 entered in the address bar.
502 If the aliased URL includes a %s format specifier, then any argument given after
503 the alias on the address bar is substituted.
504 For example, if g,http://www.google.com/search?q=%s is defined as an alias,
505 then the URL http://www.google.com/search?q=foo is loaded when navigating to
507 .It Cm allow_volatile_cookies
508 If set cookies are stored in the session cache but will be discarded once
511 Unfortunately enabling this does allow for some limited tracking on the web.
513 When set a new tab is appended after the current tab instead of being appended
516 This field delineates the cookie policy.
517 Possible values are: no3rdparty, reject 3rd party cookies.
518 accept, accept all cookies.
519 reject, reject all cookies.
521 This is a cookie whitelist item.
522 Use multiple times to add multiple entries.
523 Valid entries are for example *.moo.com and the equivalent .moo.com.
524 A fully qualified host is also valid and is for example www.moo.com.
525 .It Cm cookies_enabled
527 .It Cm ctrl_click_focus
528 Give focus in newly created tab instead of opening it in the background.
529 .It Cm default_font_size
530 Set the default browsing font size.
532 Locations where files are downloaded to.
533 This directory must exist and
535 validates that during startup.
536 .It Cm enable_cookie_whitelist
537 When enabled all cookies must be in the whitelist or they are rejected.
538 .It Cm enable_js_whitelist
539 When enabled all domains must be in the js whitelist in order to run Java Script.
543 .It Cm enable_plugins
545 .It Cm enable_scripts
548 When enabled the first instance of
550 will create a socket in the
553 Using the -n url option on subsequent
555 invocations will cause the specified URL to be loaded in a new tab.
556 Only a user with identical UID and GID can use this option.
558 Enables a backward, forward, and stop button to the toolbar.
561 is set it'll enable an entry box for searches.
563 Proxy server in URL format.
567 if it is specified as an environment variable.
568 It must be noted that one MUST use an IP address and not a FQDN.
570 If one desires to use a socks proxy then an intermediary tool must be used.
571 It has been reported that tsocks works with
574 Permits icon sizes to be changed if
577 Size 1 is small; 2 is normal; 3 through 6 are progressively larger.
579 This is a Java Script whitelist item.
582 for semantics and more details.
584 Sets an action for a specific or default MIME type.
585 For example, to download and view a pdf using kpdf set mime_type =
586 application/pdf,kpdf.
587 To set a default value use *, for example mime_type = video/*,mplayer.
588 Note that the action is only passed the URL and not all applications are
589 capable of downloading content and therefore one might have to create a wrapper
590 script to download the content first.
591 .It Cm read_only_cookies
592 Mark cookies file read-only and discard all cookies once the session is
594 .It Cm refresh_interval
595 Refresh interval while in the download manager.
598 Directory that contains various
600 resources such as icons.
601 This is OS-specific and should be handled by the porter.
602 .It Cm save_global_history
603 If set the global history will be saved to
604 .Pa ~/.xxxterm/history
606 and restored at startup.
609 section above for how the global history is accessed.
610 Global history is not saved to disk by default.
611 .It Cm save_rejected_cookies
612 Saves rejected cookies in cookie format in {work_dir}/rejected.txt.
613 All cookies are saved and unlike a cookie jar they are never replaced.
614 Make sure there is enough disk space to enable this feature.
616 Default search engine string.
620 .It Cm session_autosave
621 Enable session auto-saving when changing state (e.g. adding or removing a tab).
622 The session name is what is currently in use and is described in the
627 .It Cm session_timeout
628 This value is the time that is added in seconds to a session cookie.
630 Enable or disable showing tabs.
632 Enable or disable showing the url and toolbar.
633 .It Cm single_instance
636 will be permitted to run.
637 If there is a URL specified it will be opened in a new tab in the already
642 If set to a valid PEM file
643 all server certificates will be validated against it.
644 The URL bar will be colored green when the certificate is trusted
645 and yellow when untrusted.
649 is not set then the URL bar will color all HTTPS connections red.
650 .It Cm ssl_strict_certs
651 If this value is set connections to untrusted sites will be aborted.
652 This value is only used if
656 Set to override the default
660 Set the default height of the browser window.
662 Set the default width of the browser window.
666 was inspired by vimprobable2 and the bloat in other
673 .An Marco Peereboom Aq marco@peereboom.us ,
674 .An Stevan Andjelkovic Aq stevan@student.chalmers.se ,
675 .An Edd Barrett Aq vext01@gmail.com ,
677 .An Todd T. Fries Aq todd@fries.net .
680 .Cm save_global_history
683 is supposed to, in addition to restoring the global history, color the
684 visited links accordingly; however due to bug #51747 in WebKit this does