1 .\" Copyright (c) 2010, 2011, 2012 Marco Peereboom <marco@peereboom.us>
2 .\" Copyright (c) 2011 Jason McIntyre <jmc@openbsd.org>
3 .\" Copyright (c) 2012 Josh Rickmar <jrick@devio.us>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: August 23 2012 $
22 .Nd lightweight web browser
28 .Op Fl s Ar session_name
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.
56 Open a new tab in a running
58 for each specified URL.
63 Execute arbitrary command (see the
65 section below) in a running
67 instance. This option requires
69 to be enabled. Example run: xombrero -e "tabnew openbsd.org"; xombrero -e
70 tabclose; xombrero -e wq.
73 .It Fl s Ar session_name
74 Open session that was saved with ":session save" command.
76 Disable visualization of tabs.
79 Pages that would open in tabs open in new windows instead.
81 Display version and exit.
84 The following notation is used throughout this page:
86 .Bl -tag -width Ds -offset indent -compact
92 Meta 1 (sometimes marked Alt)
98 Meta 4 (sometimes marked Windows)
105 To browse to a specific address,
106 either use the mouse to click on the address bar
109 to shift the keyboard focus to the address bar.
110 The address is then entered manually.
112 The mouse can be used to navigate the page in the traditional manner,
113 or the keyboard can be used instead.
118 will scroll up and down the page.
121 either click on it or use the
125 assign numbers to each link on the page;
126 entering that number on the keyboard will prompt
131 provides many actions accessed via key or mouse bindings.
132 Most can be reprogrammed using a
134 entry in the configuration file.
135 Each keyboard shortcut requires exactly one entry in the configuration file.
136 A shortcut can have multiple entries in the configuration file.
137 The format of the keybinding entry is as follows:
139 .D1 keybinding = (:)action,(!)keystroke(s)
141 For example, "keybinding = tabnew,C-t" where
148 Actions may be any xombrero command that can be run from the command
150 There is one additional action,
152 which will unbind any previous actions to that keybinding.
154 If the action begins with a colon, the action will be entered into the
155 command prompt instead of being executed.
156 For example, "keybinding = :session open ,M1-s" will open the command
157 prompt with ":open session " entered when using the M1-s keybinding.
159 Keybindings which open the command prompt may also include the string
160 <uri>, which will be replaced by the current tab's URI.
161 For example, "keybinding = :open <uri>,F10" will open the command
162 prompt with <uri> replaced with the current URI.
164 GTK has some default keybindings for manipulating text inside input
165 fields, such as the URI or search entry widget, for example
167 deletes a word. To override these defaults prefix your key with an
168 exclamation mark (!), like this: "keybinding = tabclose,!C-w".
171 key word is special and is meant to reset the key binding list to the GTK+
173 This keyword should be the first
175 entry in the configuration file.
177 Shift should be used sparingly since it gets in the way of non-USA keyboards.
178 See the accompanying configuration file for examples.
180 The various bindings are documented below.
181 The relevant keybinding action is given afterwards, in parentheses.
183 These commands are used to focus or unfocus input on the default input of a web
186 .Bl -tag -width Ds -offset indent -compact
188 Go to command mode; unfocus current entry on web page.
191 Go to insert mode; focus on default entry on web page.
195 These commands are used to search for text strings within a web page.
197 .Bl -tag -width Ds -offset indent -compact
202 Start a backwards search
205 Next item matching search
208 Previous item matching search
212 These commands are used to shift the focus of
214 from one area to another.
216 .Bl -tag -width Ds -offset indent -compact
221 Focus on search entry
225 These commands allow the user to map specific actions to specific keys.
227 .Bl -tag -width Ds -offset indent -compact
231 Alias for "proxy toggle"
233 Alias for "toplevel toggle"
236 These commands allow the user to open a prompt.
237 These can be useful when the
241 .Bl -tag -width Ds -offset indent -compact
245 Alias for ":open <uri>"
249 Alias for ":tabnew <uri>"
251 .Ss Navigation Commands
252 These commands allow the user to navigate web pages and,
256 .Bl -tag -width "Space, C-f, PageDownXXX" -offset indent -compact
260 .It Cm Backspace, M-Left
263 .It Cm S-BackSpace, M-Right
270 Previous line on page
278 .It Cm Space, C-f, PageDown
280 .Pq Cm scrollpagedown
292 .Pq Cm scrollfarright
312 Toggle JavaScript enabled for FQDN
318 Toggle cookie enabled for FQDN
321 Toggle plugins enabled for FQDN
326 supports tabbed browsing.
327 That is, web pages may be opened in separate tabs,
328 allowing the user to quickly move from one page to another,
330 These commands then are used to create, destroy, and move between tabs.
332 .Bl -tag -width "C-plus, C-equalXXX" -offset indent -compact
334 Open new tab with the clicked link
336 Create new tab with focus in URL entry
339 Create new tab with focus in URL entry as the last tab in the browser
347 .It Cm C-Left, C-PageUp
348 Go to the previous tab
350 .It Cm C-Right, C-PageDown
356 .Pq Cm tabnext [1..9]
366 .It Cm C-plus, C-equal
370 Set zoom level to 100%
373 .Ss Yanking and pasting
374 These commands copy and paste text to and from the clipboard.
376 .Bl -tag -width Ds -offset indent -compact
378 Paste the contents of the clipboard into the address bar
381 Paste the contents of the clipboard into a new tab
384 Yank the current URL into the clipboard
387 .Ss Hyperlink Following
388 This allows the user to follow hyperlinks
389 without using a mouse.
390 Enter the corresponding number to follow the link.
391 Alternatively one can type the name of the link and when there are no more
394 will follow the link.
396 .Bl -tag -width Ds -offset indent -compact
398 Highlight all links and prefix them with a number.
401 Highlight all links and prefix them with a number but open in a new tab.
402 .Pq Cm hinting_newtab
405 Commands to exit the browser.
407 .Bl -tag -width Ds -offset indent -compact
412 .Ss Low-Contrast Color Scheme
413 These commands toggle the page style between the default CSS and a
414 low-contrast color scheme with light grey text on a dark grey background.
417 setting is changed, that stylesheet will be used instead of the
418 low-contrast color scheme.
420 .Bl -tag -width Ds -offset indent -compact
422 Toggle the current tab's style.
425 Toggle the global page style mode.
426 Will also affect new tabs.
427 .Pq Cm userstyle_global
429 .Ss Insert-mode commands
430 The following commands are only available when editing an input-field
432 .Bl -tag -width Ds -offset indent -compact
434 Edit the contents of the currently active input-element in an external editor.
438 Command mode works in a similar fashion to the
441 it is entered by typing a colon and exited by pressing Esc.
442 The commands and their descriptions are listed below.
443 .Bl -tag -width Ds -offset indent
444 .It Cm about , version
445 Display the About page.
446 .It Cm buffers , ls , tabs
447 Display the currently opened tabs and let the user switch tabs by typing
448 the tab number or by using the mouse.
450 Display CA certificates.
451 .It Cm cert , cert show
452 Download and display certificates of the domain on current tab.
454 Save certificate into a local store.
455 The next time the site is visited it is compared against the store.
456 If the certificate matches,
457 the address bar will be blue;
458 if it doesn't the bar will be red.
462 command is used to manipulate the cookie whitelist.
463 Used by itself it expands to
464 .Cm cookie show all .
466 Show cookie jar contents.
468 Remove all cookies from the cookie jar.
469 .It Cm cookie save, cookie save fqdn
470 Save the current fully qualified domain name (FQDN)
471 to the persistent whitelist.
473 the www.peereboom.us domain would result in saving www.peereboom.us.
474 .It Cm cookie save domain
475 Save the top level domain name to the persistent whitelist.
477 the www.peereboom.us domain would result in saving .peereboom.us.
479 This action enables cookies if it is currently disabled for this entry.
480 .It Cm cookie show all
481 Show all persistent and session entries in the cookie whitelist.
482 .It Cm cookie show persistent
483 Show all persistent entries in the cookie whitelist.
484 .It Cm cookie show session
485 Show all session entries in the cookie whitelist.
486 .It Cm cookie toggle domain
487 Toggle cookie support for the current top level domain.
488 .It Cm cookie toggle, cookie toggle fqdn
489 Toggle cookie support for the current FQDN.
491 Show download manager.
492 .It Cm encoding Op Ar encoding
493 Set the current tab's encoding to
498 is not provided, the current tab's encoding is displayed.
500 Open the source for the current tab in the editor specified by the
503 and then check for changes to the file opened. If it is changed, the
504 page will be updated.
506 If a text-element is currently active (<input> or <textarea>), it's
507 contents will be opened in the same fashion as for the command
512 .It Cm favadd Op Ar title
513 Add the current page to favorites.
514 The title can be overridden by specifying
517 Show favorites list and links to remove entries.
518 .It Cm fullscreen , f
519 Toggle hiding tabs and url entry toolbar.
520 .It Cm h , hist , history
529 command is used to manipulate the items in the HTTPS force list.
530 Used by itself it expands to
532 .It Cm https save, save fqdn
533 Save the FQDN to the persistent force HTTPS list.
535 the www.peereboom.us domain would result in saving www.peereboom.us.
536 .It Cm https save domain
537 Save the top level domain name to the persistent whitelist.
539 the www.peereboom.us domain would result in saving .peereboom.us.
540 .It Cm https show all
541 Show all persistent and session entries in the HTTPS force list.
542 .It Cm https show persistent
543 Show all persistent entries in the HTTPS force list.
544 .It Cm https show session
545 Shows all session entries in the HTTPS force list.
546 .It Cm https toggle, https toggle fqdn
547 Toggle this FQDN in the HTTPS force list.
548 .It Cm https toggle domain
549 Toggle the top level domain in the HTTPS force list.
553 command is used to manipulate the JavaScript whitelist.
554 Used by itself it expands to
556 .It Cm js save, save fqdn
557 Save the FQDN to the persistent whitelist.
559 the www.peereboom.us domain would result in saving www.peereboom.us.
560 .It Cm js save domain
561 Save the top level domain name to the persistent whitelist.
563 the www.peereboom.us domain would result in saving .peereboom.us.
565 This action enables JavaScript if it is currently disabled for this entry.
567 Show all persistent and session entries in the JavaScript whitelist.
568 .It Cm js show persistent
569 Show all persistent entries in the JavaScript whitelist.
570 .It Cm js show session
571 Show all session entries in the JavaScript whitelist.
572 .It Cm js toggle, js toggle fqdn
573 Toggle JavaScript execution for the current FQDN.
574 .It Cm js toggle domain
575 Toggle JavaScript execution for the current top level domain.
579 is disabled, load all images for current site.
580 .It Cm open , op , o Ar URL
586 command is used to manipulate the plugin whitelist.
587 Used by itself it expands to
588 .Cm plugin show all .
589 .It Cm plugin save, save fqdn
590 Save the FQDN to the persistent whitelist.
592 the www.peereboom.us domain would result in saving www.peereboom.us.
593 .It Cm plugin save domain
594 Save the top level domain name to the persistent whitelist.
596 the www.peereboom.us domain would result in saving .peereboom.us.
598 This action enables plugins if they are currently disabled for this entry.
599 .It Cm plugin show all
600 Show all persistent and session entries in the plugin whitelist.
601 .It Cm plugin show persistent
602 Show all persistent entries in the plugin whitelist.
603 .It Cm plugin show session
604 Show all session entries in the plugin whitelist.
605 .It Cm plugin toggle, plugin toggle fqdn
606 Toggle plugin execution for the current FQDN.
607 .It Cm plugin toggle domain
608 Toggle plugin execution for the current top level domain.
614 command is used to manipulate the currently set proxy.
615 Used by itself it expands to
622 Enable or disable the proxy for
626 must be set before it can be toggled.
627 .It Cm qa , qall , quitall
631 Close current tab and quit
633 if it is the last tab.
637 and reload all current tabs.
638 .It Cm run_script Op Ar path_to_script
641 with the current uri as the argument.
644 is not provided, the script specified by the
646 setting is used instead.
647 .It Cm script Ar filename
648 Run an external JavaScript script file in the current tab context.
649 .It Cm session , Cm session show
650 Display the current session name.
651 By default the session name is
653 To create a new session use the
656 A session is defined as the lifetime of the browser application.
657 .It Cm session delete Ar session_name
660 from persistent storage.
663 is the current session then the session will revert to
665 .It Cm session open Ar session_name
666 Close all tabs and open session
668 Going forward this session is named
670 .It Cm session save Ar session_name
671 Save current tabs to session
673 This will close the current session and going forward this session is named
678 command is used to inspect, clear or change runtime options.
679 There are 3 methods to use
681 When used by itself as
683 the command displays all options as currently set.
686 .Dq Cm :set Ao Ar option Ac Ns = Ns Aq Ar value .
688 .Dq Cm :set http_proxy=http://127.0.0.1:8080 .
691 .Dq Cm :set Ao Ar option Ac Ns = .
693 .Dq Cm :set http_proxy= .
695 Note, not all options can be set at runtime.
697 Show blocked cookie statistics.
698 These statistics vary based on settings and are not persistent.
699 .It Cm statustoggle , statust
702 Stop loading the current web page.
707 .It Cm tabnew , tabedit Op Ar URL
708 Create a new tab and optionally open provided
713 Close all tabs except the currently focused one.
715 Go to the previous tab.
718 .It Cm toplevel , toplevel toggle
719 Toggle the top level domain name cookie and JS session whitelist.
720 This is to enable/disable short lived full site functionality without
721 permanently adding the top level domain to the persistent whitelist.
722 .It Cm urlhide , urlh
723 Hide url entry and toolbar.
724 .It Cm urlshow , urls
725 Show url entry and toolbar.
726 .It Cm userstyle Op Ar stylesheet
727 Toggle the current tab between using the custom stylesheet
729 and the page's default CSS.
732 is not provided, the stylesheet specified by the
734 setting will be used.
737 setting is set by default to a low-contrast color scheme.
739 Additional stylesheets may be used in addition to that set by
741 by specifying additional keybindings.
744 .D1 keybinding = userstyle ~/style.css,v
745 .D1 keybinding = userstyle_global ~/style.css,V
747 will map toggling between ~/style.css to the v and V keys while
748 keeping the stylesheet specified by
750 mapped to the s and S keys.
751 .It Cm userstyle_global Op Ar stylesheet
754 command but affects all open tabs and newly created tabs will use
757 Save open tabs to current session.
758 The tabs will be restored next time the session is opened.
759 See the session command for additional details.
761 Save open tabs and quit.
762 The tabs will be restored next time the session is opened.
765 command for more details.
768 In addition to shortcuts and commands
770 provides buffer commands. Buffer commands are short, multi character
771 vi-like commands, often requiring an argument. Partial buffer commands
773 displayed in the buffer command statusbar element (see
774 .Cm statusbar_elems ) .
775 Pressing Esc or switching to another tab cancels a partially entered
776 buffer command. In the following list
778 denotes the argument a buffer command accepts. Buffer commands are
779 defined as extended regular expressions.
780 Note that if a character is used as a shortcut it will not be interpreted
781 as the beginning of a buffer command. This is the case with
784 .Bl -tag -width "['][a-zA-Z0-9]XXX" -offset indent -compact
786 go to the top of the page
788 go to the bottom of the page
794 go to 50% of the page
800 is missing, 1 is assumed. Going a
801 level up means going to a URI obtained from the current one by removing
802 the last slash ('/') character and everything that follows it
804 go to the root level, i.e. going up as many levels as possible.
806 open the home page in the current tab
808 set a mark denoted by
810 at the current page position. These marks behave like those in vi or
812 .It Cm ['][a-zA-Z0-9']
813 go to the position where mark
815 was set. The special mark "'" points to the previous page position, after a
816 "gg", "gG", "zz", "%" or "'" buffer command.
818 set the current uri as quickmark
821 open the uri marked as quickmark
825 open the uri marked as quickmark
854 set zoom level to 100%
861 Quickmarks are like bookmarks, except they are referred to by a single
862 character (a letter or a digit), instead of a longer name. See the
867 buffer commands for usage. Quickmarks are stored in
868 .Pa ~/.xombrero/quickmarks
869 and are saved automatically after each
873 The about screens are internally generated web pages by
875 for user interaction.
876 These are entered in the address bar and the format is
878 where screen is the desired screen to display.
879 For example about:favorites.
880 Any about screen can be used as the home page as specified by
882 in the configuration file.
884 .Bl -tag -width "downloadsXXX" -offset indent -compact
886 show the about screen
890 show the cookie whitelist screen
892 show the cookiejar screen
894 show the downloads screen
896 show the favorites screen
898 show the help web page
900 show the history screen
902 show the JavaScript whitelist screen
904 show the settings screen
906 show the statistics screen
909 This section describes advanced usage settings.
910 Most users should use
914 and skip over this section.
917 has a number of whitelists to control blocking cookies and JavaScript
918 execution for FQDNs or domains.
919 When properly enabled these whitelists require either the FQDN or top level
920 domain to exist in the whitelists in order to allow cookies to be stored or
921 JavaScript to execute.
922 Both JavaScript and cookies have two whitelists associated with them.
923 The whitelists are called session and persistent.
924 Items in the session whitelists are only allowed for the lifetime of the
927 Items in the persistent whitelists are stored on disk and are restored
930 Setting up the whitelists is a little tricky due to intricacies of WebKit.
931 In fact the semantics are different for cookies and JavaScript.
933 Cookie whitelist requires the following configuration to be set:
935 .Bl -tag -width "enable_cookie_whitelistXXX" -offset indent -compact
936 .It Cm cookies_enabled
937 This is a WebKit setting and must be set to
940 in order to be able to use a
942 .It Cm enable_cookie_whitelist
943 This needs to be set to
945 to enable the cookie whitelist functionality.
947 These entries in the configuration file are the actual domains names in the
951 JavaScript whitelist requires the following configuration to be set:
953 .Bl -tag -width "enable_js_whitelistXXX" -offset indent -compact
954 .It Cm enable_scripts
955 This is a WebKit setting and must be set to
958 in order to be able to use a
959 JavaScript whitelist.
960 .It Cm enable_js_whitelist
961 This needs to be set to
963 to enable the JavaScript whitelist functionality.
965 These entries in the configuration file are the actual domains names in the
966 JavaScript whitelist.
969 Plugin whitelist requires the following configuration to be set:
971 .Bl -tag -width "enable_plugin_whitelistXXX" -offset indent -compact
972 .It Cm enable_plugins
973 This is a WebKit setting and must be set to
976 in order to be able to use a
978 .It Cm enable_plugin_whitelist
979 This needs to be set to
981 to enable the plugin whitelist functionality.
983 These entries in the configuration file are the actual domains names in the
989 section for additional configuration file entries and details
990 that alter runtime behavior.
992 .Bl -tag -width "/etc/xombrero.confXXX" -compact
993 .It Pa ~/.xombrero.conf
995 user specific settings.
1002 tries to open the user specific file,
1003 .Pa ~/.xombrero.conf .
1004 If that file is unavailable,
1005 it then uses built-in defaults.
1006 Any settings saved at runtime will be saved to the file
1007 .Pa ~/.xombrero/runtime
1008 and will be loaded as well.
1010 The format of the file is \*(Ltkeyword\*(Gt = \*(Ltsetting\*(Gt.
1013 .Dl http_proxy = http://127.0.0.1:8080
1015 Enabling or disabling an option is done by using 1 or 0 respectively.
1017 The file supports the following keywords:
1019 .Bl -tag -width "enable_cookie_whitelistXXX" -offset indent -compact
1021 Defines an alias for a given URL, so that the URL is loaded when the alias is
1022 entered in the address bar.
1023 If the aliased URL includes a %s format specifier, then any argument given after
1024 the alias on the address bar is substituted.
1025 For example, if g,http://www.google.com/search?q=%s is defined as an alias,
1026 then the URL http://www.google.com/search?q=foo is loaded when navigating to
1028 .It Cm allow_insecure_content
1029 If set, all content referenced by a page will be loaded.
1030 If unset, encrypted pages will refuse to load content that is linked
1031 from an insecure location.
1032 .It Cm allow_insecure_scripts
1033 If set, all scripts referenced by a page will be loaded and run using
1034 the current javascript policy.
1035 If unset, encrypted pages will refuse to run scripts that are linked
1036 from an insecure location.
1037 .It Cm allow_volatile_cookies
1038 If set cookies are stored in the session cache but will be discarded once
1041 Unfortunately enabling this does allow for some limited tracking on the web.
1042 .It Cm anonymize_headers
1043 If set, HTTP headers taken from the
1044 .Lk https://www.bitrig.org/ "Bitrig website"
1045 will be used to feed additional values to the
1047 HTTP header settings.
1048 Currently only the User-Agent and Http-Accept headers are modified,
1049 corresponding to the
1053 settings, respectively.
1054 These headers are set after any header settings are read in from your
1055 .Cm ~/.xombrero.conf .
1058 When set a new tab is appended after the current tab instead of being appended
1060 .It Cm auto_load_images
1061 If disabled, images will not be loaded automatically.
1062 .It Cm autofocus_onload
1063 When set a tab that is loaded will attempt to autofocus the default input
1065 This is only done for tabs that are currently visible.
1069 browser has 3 default operating modes:
1077 mode the browser allows all cookies, plugins and JavaScript as any other
1079 This means that all cookies are saved to persistent storage and that all
1080 JavaScript and plugins run.
1082 On the other hand, using the
1084 mode enables whitelists.
1085 This requires the user to add all the required
1091 If a domain does not appear in the whitelists
1093 disallows cookies, JavaScript and plugin execution.
1094 If insecure web content or scripts are referenced by a secure website,
1095 they will be blocked from loading or running.
1099 mode the browse works just like
1101 mode however the toolbar only has the backward, forward and home button.
1103 This setting must be the first entry in
1104 .Pa ~/.xombrero.conf
1105 because it sets advanced settings that can be overridden later in the file.
1106 See the default config file for more details.
1108 This setting is used to define an alias for a command.
1109 The syntax of this setting is
1110 .Pa cmd_alias = alias,cmd .
1111 For example, if you wanted to set an alias for the
1116 .Pa cmd_alias = tn,tabnew
1118 .Pa ~/.xombrero.conf .
1119 This setting may not begin with a number.
1121 Set the command prompt font.
1123 .Pa cmd_font = monospace normal 9 .
1124 .It Cm color_visited_uris
1125 When enabled (the default)
1127 will color visited links. This is done while the web page loads using
1128 JavaScript, rather than WebKit's (broken, see bug #51747) built-in
1129 facility for coloring visited links. The JavaScript approach is
1130 (probably) slower and is not consistent across tabs (unless the tabs are
1131 reloaded), but has the advantage of not leaking history data to web
1132 pages (see http://wtikay.com/docs/details.html).
1133 .It Cm cookie_policy
1134 This field delineates the cookie policy.
1135 Possible values are: no3rdparty, reject 3rd party cookies.
1136 accept, accept all cookies.
1137 reject, reject all cookies.
1139 This is a cookie whitelist item.
1140 Use multiple times to add multiple entries.
1141 Valid entries are for example *.moo.com and the equivalent .moo.com.
1142 This matches both moo.com, as well as all subdomains.
1143 A fully qualified host is also valid and is for example www.moo.com or
1145 Fully qualified hosts do not modify whitelist settings for any
1148 Unix extended regular expressions may also be used to match any set of
1150 Regular expressions must begin with the prefix "re:".
1151 As an example, the regular expression equivalent to moo.com would be
1153 and the equivalent to .moo.com would be
1154 .Pa ^(.*\.)*moo\.com$ .
1155 If using regular expressions for whitelist items, be careful to not
1156 accidentally match other domains;
1157 you will almost always want to add the ^ and $ characters to the
1158 beginning and end of the regex so that, for example,
1160 would not match not-moo.com.
1161 .It Cm cookies_enabled
1163 .It Cm ctrl_click_focus
1164 Give focus in newly created tab instead of opening it in the background.
1166 This setting provides the ability to run custom executables for
1168 The syntax for this setting is
1169 .Pa custom_uri\ =\ protocol,command .
1170 The URI is passed as a single argument to
1172 to be parsed and executed.
1174 For example, to add the ability to use custom
1176 URIs, add the setting
1177 .Pa custom_uri = mailto,command
1180 is a program that will parse the
1182 URI and open your mail client.
1183 .It Cm default_script
1184 Path to the script used as the default value for the run_script
1186 .It Cm default_zoom_level
1187 Set the default browsing zoom level.
1189 Sets the HTTP Do Not Track header to tell sites that you wish to be
1190 opted-out of 3rd-party tracking for the use of behavioral advertising.
1191 Not all sites currently support this header, and this is only a
1192 suggestion of a user preference.
1193 Sites may still perform 3rd-party tracking even when this feature is
1196 Locations where files are downloaded to.
1197 This directory must exist and
1199 validates that during startup.
1200 .It Cm download_mode
1201 Controls how downloads are handled.
1202 Possible values are:
1203 .Bd -literal -offset indent
1204 start - automatically start download.
1205 ask - ask user for confirmation.
1206 add - add to downloadmanager, but
1209 The default is "start".
1210 .It Cm download_notifications
1211 When enabled a message is shown when downloads are finished.
1213 .It Cm enable_autoscroll
1214 When enabled clicking MB3 will spawn the autoscroll ball, scrolling can
1215 then proceed by dragging the mouse away from the ball.
1216 .It Cm enable_cookie_whitelist
1217 When enabled all cookies must be in the whitelist or they are rejected.
1218 Additionally whitelisted cookies also enable HTML5 local storage for the
1221 When enabled (disabled by default), web content will be cached into
1223 .It Cm enable_favicon_entry
1224 When enabled (the default)
1226 displays the favicon of the web page at the URI entry. This setting
1232 .It Cm enable_favicon_tabs
1233 When enabled (disabled by default)
1235 displays favicons at each tab. This setting only affects
1238 .It Cm enable_js_autorun
1239 Enables support for autorunning JavaScript after page loads. When
1242 will be searched for
1245 .Pa host.domain.js .
1250 will be tried instead. The content of the both default and
1251 host/domain files are read and executed on each page load.
1254 As an example, if you add the line
1255 .Pa alert("Hello, world");
1258 a pop-up displaying "Hello, world" will be shown on every page reload.
1259 While not useful, any javascript can be run through this mechanism,
1260 making it useful for global or site-specific modifications.
1261 .It Cm enable_js_whitelist
1262 When enabled all domains must be in the js whitelist in order to run Java
1267 .It Cm enable_plugin_whitelist
1268 When enabled all domains must be in the plugin whitelist in order to run
1273 .It Cm enable_plugins
1274 Enable external plugins such as Flash and Java.
1275 .It Cm enable_strict_transport
1276 Enable support for the Strict-Transport-Security HTTP-header.
1277 When enabled, sites that set this flag will only be visited via HTTPS.
1279 .It Cm enable_scripts
1281 .It Cm enable_socket
1282 When enabled the first instance of
1284 will create a socket in the
1287 Using the -n url option on subsequent
1289 invocations will cause the specified URL to be loaded in a new tab.
1290 Only a user with identical UID and GID can use this option.
1291 .It Cm enable_localstorage
1292 Enable html5 Local Storage.
1293 .It Cm enable_spell_checking
1294 Enables spell checking. Preferred languages can be set using
1295 .Cm spell_check_languages
1298 Set the default encoding.
1300 .Pa encoding = ISO-8859-1 .
1301 .It Cm external_editor
1302 Set which editor to use for external editing.
1303 the string <file> will be replaced by the current filename.
1305 .Pa external_editor = gvim -f <file>
1308 relies on the editor
1310 into the background.
1312 Enables a backward, forward, and stop button to the toolbar.
1315 is set it'll enable an entry box for searches.
1317 This setting is used to define the domains of sites that should be
1318 only accessed over the HTTPS scheme.
1319 Any requests to these domains over HTTP will be rewritten to use HTTPS
1324 .It Cm gnutls_priority_string
1325 If set, this string sets the G_TLS_GNUTLS_PRIORITY environmental
1326 variable to define the GnuTLS priority string that is used when
1327 initializing the GnuTLS session.
1328 This may be used to change the supported TLS/SSL versions and the
1329 ciphers that are used when making HTTPS connections.
1331 Full details on how to modify this setting may be found in the GnuTLS
1332 documentation, Section 8.9: Priority Strings.
1333 For example, to disable the 128-bit RC4 cipher, change this setting to
1334 .Pa NORMAL:!ARCFOUR-128 .
1336 If your glib-networking package is older than version 2.33.10, or if
1337 the G_TLS_GNUTLS_PRIORITY environmental variable is already set, this
1338 setting has no effect.
1342 will try to guess if the string you entered, in the URI entry widget or
1343 the command widget, is term you want to search for using search_string
1345 If the string does not contain a dot nor a slash, is not a
1346 path to a local file and does not resolves to an IP then it is assumed
1347 to be a search term.
1349 To simplify configuring
1351 allows you pick between two GUI modes:
1357 mode the GUI looks similar to that of most mainstream browsers. While in
1359 mode the GUI looks more vi-like. One can get a GUI between the two by
1360 tweaking the low-level GUI settings found under the advanced GUI setting
1361 section in the configuration file.
1362 .It Cm history_autosave
1365 will save all command and search history.
1368 the saved command and search history will be restored.
1370 Homepage in URL format.
1372 Proxy server in URL format.
1376 if it is specified as an environment variable.
1377 It must be noted that on older Webkit versions one MUST use an IP address and
1379 This works as expected with Webkit 1.4.2.
1381 If using libsoup 2.42.2 or newer, one may use a socks proxy directly.
1383 .Bd -literal -offset indent
1384 http_proxy = socks5://127.0.0.1:9050
1386 Otherwise, an intermediary tool, such as polipo or tsocks, must be used.
1388 If set, the HTTP Accept header will be modified for each text/html request.
1389 If this setting is set multiple times, the Accept header will be changed
1390 in a round-robin order for every text/html request on a tab.
1391 Because this setting rotates through Accept headers on each text/html
1392 request, a single page may rotate through more than one Accept header
1393 if multiple text/html requests are made.
1395 Please be aware that not all websites report browser headers correctly.
1396 Most notably, EFF's panopticlick service also reports the HTTP
1397 Accept-Encoding headers on the same line as the Accept headers.
1398 If you are trying to find the headers of another browser to model that
1399 browser's fingerprint, it is recommended to not use panopticlick for
1402 Note that this setting only rewrites the Accept header for text/html
1403 requests. Other requests will use WebKit's default Accept header.
1404 .It Cm http_proxy_starts_enabled
1405 If set to 0, the http_proxy will be disabled at startup. The user can later
1406 enable the proxy with the
1408 command or keybinding.
1410 Permits icon sizes to be changed if
1413 Size 1 is small; 2 is normal; 3 through 6 are progressively larger.
1414 .It Cm include_config
1415 This must be a path to another configuration file.
1416 Configuration files are usually read from top to bottom, however, if
1419 will begin reading the included file at this location and continue
1420 reading the rest of the configuration after the included file has
1421 finished being read.
1423 Any simple settings set before the include may
1424 be overridden by settings in the included file, and any simple
1425 settings set in the included file may be overridden later by settings
1426 after the include or at runtime using the
1429 However, database settings (for example,
1430 .Cm cookie_wl , js_wl , pl_wl ,
1433 are only ever added to the database, and so the order of an included
1434 configuration file is not pertinent to these database settings.
1436 This feature is likely best used as the last item in
1437 .Pa ~/.xombrero.conf .
1438 .It Cm js_auto_open_windows
1439 If enabled, javascripts will be allowed to automatically open windows
1440 based on the current
1442 If disabled, it will never be allowed. The default setting is 1 (enabled).
1444 This is a JavaScript whitelist item.
1447 for semantics and more details.
1448 .It Cm max_connections
1449 The maximum number of connections that
1452 .It Cm max_host_connections
1453 The maximum number of connections that
1455 can open at once to a given host.
1457 Sets an action for a specific or default MIME type.
1458 For example, to download and view a pdf using kpdf set
1459 .Pa mime_type = application/pdf,kpdf .
1460 To set a default value use *, for example,
1461 .Pa mime_type = video/*,mplayer .
1462 Note that the action is only passed the URL and not all applications are
1463 capable of dealing with a URL and therefore one might have to create a wrapper
1464 script to download the content first. Alternatively one can add the
1466 in front of the MIME type to indicate "download first".
1468 .Pa mime_type = @application/pdf,xpdf .
1471 is use the file will be downloaded to the
1473 before the MIME handler is called.
1475 The special binary name "donothing" may be used to ignore a MIME type
1476 without displaying any warnings from being unable to execute the
1479 Set the font used to display error messages.
1481 .Pa oops_font = monospace normal 9 .
1483 This is a plugin whitelist item.
1486 for semantics and more details.
1487 .It Cm preload_strict_transport
1488 If enabled, a preloaded list of sites which set the HTTP Strict
1489 Transport Security header will be used to automatically set the
1491 setting for these sites.
1492 This is used to prevent SSL stripping attacks when first visiting
1493 these sites, before they have been added to the strict-transport file.
1494 This list is comprised of domains chosen by the
1496 authors, as well as domains included in Chromium's preloaded HSTS
1499 .It Cm read_only_cookies
1500 Mark cookies file read-only and discard all cookies once the session is
1502 .It Cm refresh_interval
1503 Refresh interval while in the download manager.
1508 is handled in http-requests.
1509 .Bd -literal -offset indent
1510 always - always send referer
1511 never - never send referer
1512 same-domain - only send referer if it's
1513 for the same public suffix - this means that
1514 it's OK for subdomains to refer to each other
1515 same-fqdn - only send referer if it's FQDN match
1517 Any other value that is also a valid URL will use this
1518 custom value as referer. (E.g. you could set it to http://no-referer.com)
1519 The default value is
1522 Directory that contains various
1524 resources such as icons.
1525 This is OS-specific and should be handled by the porter.
1526 .It Cm save_global_history
1527 If set the global history will be saved to
1528 .Pa ~/.xombrero/history
1530 and restored at startup.
1533 section above for how the global history is accessed.
1534 Global history is not saved to disk by default.
1535 .It Cm save_rejected_cookies
1536 Saves rejected cookies in cookie format in {work_dir}/rejected.txt.
1537 All cookies are saved and unlike a cookie jar they are never replaced.
1538 Make sure there is enough disk space to enable this feature.
1539 .It Cm search_string
1540 Default search engine string.
1544 .It Cm session_autosave
1545 Enable session auto-saving when changing state (e.g. adding or removing a tab).
1546 The session name is what is currently in use and is described in the
1551 .It Cm session_timeout
1552 This value is the time that is added in seconds to a session cookie.
1554 Enable or disable showing tabs.
1556 Enable or disable showing the url and toolbar.
1557 .It Cm show_scrollbars
1558 Enable or disable the showing of the horizontal and vertical scrollbars.
1559 Disabling this setting requires GTK3.
1560 .It Cm show_statusbar
1561 Enable or disable showing the status bar.
1562 .It Cm single_instance
1567 will be permitted to run.
1568 If there is a URL specified it will be opened in a new tab in the already
1572 .It Cm spell_check_languages
1573 The languages to be used for spell checking, separated by commas. For example,
1576 If set to a valid PEM file
1577 all server certificates will be validated against it.
1578 The URL bar will be colored green (or blue when saved) when the certificate is
1579 trusted and yellow when untrusted.
1583 is not set, the URL bar will be colored red if the certificate has not
1584 been saved, or blue if it has been saved.
1586 WebKit only supports a single PEM file.
1587 Many OS' or distributions have many PEM files.
1588 One can simply concatenate all separate files into one large one.
1590 .Cm for i in `ls`; do cat $i >> cert.pem; done
1591 and use the resulting cert.pem file as the input to
1593 It is advisable to periodically recreate the cert.pem file.
1594 .It Cm ssl_strict_certs
1595 If this value is set connections to untrusted sites will be aborted.
1596 This value is only used if
1599 .It Cm statusbar_elems
1600 Define the components of the status bar. The possible components are:
1601 .Bd -literal -offset indent
1603 P - page progress percent
1604 p - proxy enabled/disabled
1607 T - current tab number
1609 The default is "BP".
1610 These components show nothing if there is nothing worth showing, like
1612 .It Cm statusbar_font
1613 Set the status bar font.
1615 .Pa statusbar_font = monospace normal 9 .
1616 .It Cm statusbar_style
1617 Set the status bar style to either
1619 - display the current url, or
1621 - display the page title. The default is
1624 Set the tab style to either
1626 - the default gtk notebook tabs, or
1629 You can switch the tab style with the
1633 Set the compact tab bar font.
1635 .Pa tabbar_font = monospace normal 9 .
1637 Disable tabs, and open new windows instead.
1638 Note that this feature does not disable the display of tabs.
1641 setting also if you wish to disable the display of tabs.
1644 This is the regular expression that is used to match what constitutes a valid
1648 Set to override the default
1650 user-agent string. May be specified several times for switching between
1653 Set the stylesheet to be used as a default for the
1656 .Cm userstyle_global
1657 commands when no extra parameters are given.
1658 The default is a low-contrast stylesheet.
1659 .It Cm userstyle_global
1660 When enabled new tabs will automatically be displayed using the custom
1661 stylesheet specified by the
1664 .It Cm warn_cert_changes
1665 When enabled all SSL certificates from HTTPS websites will be
1667 .Cm ~/.xombrero/certs_cache/
1669 On each page load, if the remote certificate differs from the cached
1670 local version, a warning page with options of what to do next will be displayed
1671 instead of the requested page.
1672 This feature may be used in addition to the coloring of the URL bar and
1673 can be used to help prevent against man-in-the-middle attacks, even if
1674 the new remote certificate is signed by a trusted certificate
1678 .It Cm window_height
1679 Set the default height of the browser window.
1681 Set the default width of the browser window.
1682 .It Cm window_maximize
1683 Maximize the browser window at startup.
1685 Set the work directory where all
1687 scratch files are stored.
1693 was inspired by vimprobable2 and the bloat in other
1700 .An Marco Peereboom Aq marco@peereboom.us ,
1701 .An Stevan Andjelkovic Aq stevan@student.chalmers.se ,
1702 .An Edd Barrett Aq vext01@gmail.com ,
1703 .An Todd T. Fries Aq todd@fries.net ,
1704 .An Raphael Graf Aq r@undefined.ch ,
1705 .An Michal Mazurek Aq akfaew@jasminek.net ,
1707 .An Josh Rickmar Aq jrick@devio.us .