2020-06-18 16:54:48 -04:00
|
|
|
# This is the default config file.
|
|
|
|
# It also shows all the default values, if you don't create the file.
|
|
|
|
|
2020-06-20 17:17:34 -04:00
|
|
|
# All URL values may omit the scheme and/or port, as well as the beginning double slash
|
|
|
|
# Valid URL examples:
|
|
|
|
# gemini://example.com
|
|
|
|
# //example.com
|
|
|
|
# example.com
|
2020-06-23 20:07:25 -04:00
|
|
|
# example.com:123
|
2020-06-18 16:54:48 -04:00
|
|
|
|
2020-08-06 13:55:43 -04:00
|
|
|
|
2020-06-18 16:54:48 -04:00
|
|
|
[a-general]
|
2020-08-04 21:05:12 -04:00
|
|
|
# Press Ctrl-H to access it
|
2020-06-18 16:54:48 -04:00
|
|
|
home = "gemini://gemini.circumlunar.space"
|
2020-06-20 17:17:34 -04:00
|
|
|
|
2020-08-27 18:55:42 -04:00
|
|
|
# Follow up to 5 Gemini redirects without prompting.
|
|
|
|
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.
|
|
|
|
# If set to false, a prompt will be shown before following redirects.
|
|
|
|
auto_redirect = false
|
|
|
|
|
2020-11-04 18:35:56 -05:00
|
|
|
# What command to run to open a HTTP(S) URL.
|
|
|
|
# Set to "default" to try to guess the browser, or set to "off" to not open HTTP(S) URLs.
|
2020-06-18 16:54:48 -04:00
|
|
|
# If a command is set, than the URL will be added (in quotes) to the end of the command.
|
2020-11-04 18:35:56 -05:00
|
|
|
# A space will be prepended to the URL.
|
|
|
|
#
|
|
|
|
# The best to define a command is using a string array.
|
|
|
|
# Examples:
|
2020-11-19 20:49:16 -05:00
|
|
|
# http = ['firefox']
|
|
|
|
# http = ['custom-browser', '--flag', '--option=2']
|
|
|
|
# http = ['/path/with spaces/in it/firefox']
|
2020-11-04 18:35:56 -05:00
|
|
|
#
|
2020-11-19 20:49:16 -05:00
|
|
|
# Note the use of single quotes, so that backslashes will not be escaped.
|
|
|
|
# Using just a string will also work, but it is deprecated, and will degrade if
|
|
|
|
# you use paths with spaces.
|
2020-11-04 18:35:56 -05:00
|
|
|
|
2020-11-19 20:49:16 -05:00
|
|
|
http = 'default'
|
2020-08-04 21:05:12 -04:00
|
|
|
|
|
|
|
# Any URL that will accept a query string can be put here
|
|
|
|
search = "gemini://gus.guru/search"
|
|
|
|
|
|
|
|
# Whether colors will be used in the terminal
|
|
|
|
color = true
|
|
|
|
|
2020-11-04 20:31:04 -05:00
|
|
|
# Whether ANSI color codes from the page content should be rendered
|
2020-09-04 12:42:01 -04:00
|
|
|
ansi = true
|
|
|
|
|
2020-08-04 21:05:12 -04:00
|
|
|
# Whether to replace list asterisks with unicode bullets
|
|
|
|
bullets = true
|
|
|
|
|
2020-12-01 14:00:01 -05:00
|
|
|
# Whether to show link after link text
|
|
|
|
show_link = false
|
|
|
|
|
2020-06-21 16:53:12 -04:00
|
|
|
# A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up.
|
|
|
|
left_margin = 0.15
|
2020-08-04 21:05:12 -04:00
|
|
|
|
|
|
|
# The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped.
|
|
|
|
max_width = 100
|
|
|
|
|
2020-07-09 15:21:09 -04:00
|
|
|
# 'downloads' is the path to a downloads folder.
|
|
|
|
# An empty value means the code will find the default downloads folder for your system.
|
2020-07-09 19:28:39 -04:00
|
|
|
# If the path does not exist it will be created.
|
2020-11-19 20:49:16 -05:00
|
|
|
# Note the use of single quotes, so that backslashes will not be escaped.
|
|
|
|
downloads = ''
|
2020-08-04 21:05:12 -04:00
|
|
|
|
2020-07-10 15:33:39 -04:00
|
|
|
# Max size for displayable content in bytes - after that size a download window pops up
|
|
|
|
page_max_size = 2097152 # 2 MiB
|
|
|
|
# Max time it takes to load a page in seconds - after that a download window pops up
|
|
|
|
page_max_time = 10
|
|
|
|
|
2020-08-04 21:05:12 -04:00
|
|
|
# Whether to replace tab numbers with emoji favicons, which are cached.
|
|
|
|
emoji_favicons = false
|
|
|
|
|
2020-08-27 22:40:40 -04:00
|
|
|
|
2020-11-04 16:37:00 -05:00
|
|
|
[auth]
|
|
|
|
# Authentication settings
|
2020-11-19 20:49:16 -05:00
|
|
|
# Note the use of single quotes for values, so that backslashes will not be escaped.
|
2020-11-04 16:37:00 -05:00
|
|
|
|
|
|
|
[auth.certs]
|
|
|
|
# Client certificates
|
2020-11-04 16:45:34 -05:00
|
|
|
# Set domain name equal to path to client cert
|
2020-11-19 20:49:16 -05:00
|
|
|
# "example.com" = 'mycert.crt'
|
2020-11-04 16:37:00 -05:00
|
|
|
|
|
|
|
[auth.keys]
|
|
|
|
# Client certificate keys
|
2020-11-04 16:45:34 -05:00
|
|
|
# Set domain name equal to path to key for the client cert above
|
2020-11-19 20:49:16 -05:00
|
|
|
# "example.com" = 'mycert.key'
|
2020-11-04 16:37:00 -05:00
|
|
|
|
|
|
|
|
2020-08-06 13:55:43 -04:00
|
|
|
[keybindings]
|
|
|
|
# In the future there will be more settings here.
|
|
|
|
|
|
|
|
# Hold down shift and press the numbers on your keyboard (1,2,3,4,5,6,7,8,9,0) to set this up.
|
|
|
|
# It is default set to be accurate for US keyboards.
|
|
|
|
shift_numbers = "!@#$%^&*()"
|
|
|
|
|
2020-08-04 21:05:12 -04:00
|
|
|
|
2020-08-27 18:02:19 -04:00
|
|
|
[url-handlers]
|
|
|
|
# Allows setting the commands to run for various URL schemes.
|
|
|
|
# E.g. to open FTP URLs with FileZilla set the following key:
|
2020-11-19 20:49:16 -05:00
|
|
|
# ftp = 'filezilla'
|
2020-09-01 14:55:52 -04:00
|
|
|
# You can set any scheme to "off" or "" to disable handling it, or
|
|
|
|
# just leave the key unset.
|
2020-08-27 18:02:19 -04:00
|
|
|
#
|
|
|
|
# DO NOT use this for setting the HTTP command.
|
2020-09-01 14:55:52 -04:00
|
|
|
# Use the http setting in the "a-general" section above.
|
|
|
|
#
|
2020-11-19 20:49:16 -05:00
|
|
|
# NOTE: These settings are overrided by the ones in the proxies section.
|
|
|
|
# Note the use of single quotes, so that backslashes will not be escaped.
|
2020-08-27 18:02:19 -04:00
|
|
|
|
|
|
|
# This is a special key that defines the handler for all URL schemes for which
|
|
|
|
# no handler is defined.
|
2020-11-19 20:49:16 -05:00
|
|
|
other = 'off'
|
2020-08-27 18:02:19 -04:00
|
|
|
|
|
|
|
|
2020-08-06 13:55:43 -04:00
|
|
|
[cache]
|
2020-12-20 15:54:47 -05:00
|
|
|
# Options for page cache - which is only for text pages
|
2020-06-18 16:54:48 -04:00
|
|
|
# Increase the cache size to speed up browsing at the expense of memory
|
|
|
|
# Zero values mean there is no limit
|
2020-12-20 15:54:47 -05:00
|
|
|
|
2020-06-18 16:54:48 -04:00
|
|
|
max_size = 0 # Size in bytes
|
2020-06-20 17:17:34 -04:00
|
|
|
max_pages = 30 # The maximum number of pages the cache will store
|
2020-07-28 16:58:32 -04:00
|
|
|
|
2020-12-20 15:54:47 -05:00
|
|
|
# How long a page will stay in cache, in seconds.
|
|
|
|
timeout = 1800 # 30 mins
|
2020-08-04 21:05:12 -04:00
|
|
|
|
2020-09-01 14:55:52 -04:00
|
|
|
[proxies]
|
|
|
|
# Allows setting a Gemini proxy for different schemes.
|
|
|
|
# The settings are similar to the url-handlers section above.
|
|
|
|
# E.g. to open a gopher page by connecting to a Gemini proxy server:
|
|
|
|
# gopher = "example.com:123"
|
|
|
|
#
|
|
|
|
# Port 1965 is assumed if no port is specified.
|
|
|
|
#
|
|
|
|
# NOTE: These settings override any external handlers specified in
|
|
|
|
# the url-handlers section.
|
|
|
|
#
|
|
|
|
# Note that HTTP and HTTPS are treated as separate protocols here.
|
|
|
|
|
|
|
|
|
2020-11-27 17:01:29 -05:00
|
|
|
[subscriptions]
|
2020-11-18 21:24:26 -05:00
|
|
|
# For tracking feeds and pages
|
|
|
|
|
|
|
|
# Whether a pop-up appears when viewing a potential feed
|
|
|
|
popup = true
|
|
|
|
|
2020-11-27 17:01:29 -05:00
|
|
|
# How often to check for updates to subscriptions in the background, in seconds.
|
|
|
|
# Set it to 0 to disable this feature. You can still update individual feeds
|
|
|
|
# manually, or restart the browser.
|
|
|
|
#
|
|
|
|
# Note Amfora will check for updates on browser start no matter what this setting is.
|
2020-11-18 21:24:26 -05:00
|
|
|
update_interval = 1800 # 30 mins
|
|
|
|
|
2020-11-27 17:01:29 -05:00
|
|
|
# How many subscriptions can be checked at the same time when updating.
|
|
|
|
# If you have many subscriptions you may want to increase this for faster
|
|
|
|
# update times. Any value below 1 will be corrected to 1.
|
2020-11-18 21:24:26 -05:00
|
|
|
workers = 3
|
|
|
|
|
2020-12-06 20:57:57 -05:00
|
|
|
# The number of subscription updates displayed per page.
|
|
|
|
entries_per_page = 20
|
|
|
|
|
2020-11-18 21:24:26 -05:00
|
|
|
|
2020-07-28 16:58:32 -04:00
|
|
|
[theme]
|
|
|
|
# This section is for changing the COLORS used in Amfora.
|
2020-08-04 21:05:12 -04:00
|
|
|
# These colors only apply if 'color' is enabled above.
|
|
|
|
# Colors can be set using a W3C color name, or a hex value such as "#ffffff".
|
2020-07-28 16:58:32 -04:00
|
|
|
|
|
|
|
# Note that not all colors will work on terminals that do not have truecolor support.
|
|
|
|
# If you want to stick to the standard 16 or 256 colors, you can get
|
|
|
|
# a list of those here: https://jonasjacek.github.io/colors/
|
2020-08-04 21:05:12 -04:00
|
|
|
# DO NOT use the names from that site, just the hex codes.
|
2020-07-28 16:58:32 -04:00
|
|
|
|
|
|
|
# Definitions:
|
|
|
|
# bg = background
|
|
|
|
# fg = foreground
|
|
|
|
# dl = download
|
|
|
|
# btn = button
|
|
|
|
# hdg = heading
|
|
|
|
# bkmk = bookmark
|
|
|
|
# modal = a popup window/box in the middle of the screen
|
|
|
|
|
|
|
|
# EXAMPLES:
|
|
|
|
# hdg_1 = "green"
|
|
|
|
# hdg_2 = "#5f0000"
|
|
|
|
|
|
|
|
# Available keys to set:
|
|
|
|
|
|
|
|
# bg: background for pages, tab row, app in general
|
|
|
|
# tab_num: The number/highlight of the tabs at the top
|
|
|
|
# tab_divider: The color of the divider character between tab numbers: |
|
|
|
|
# bottombar_label: The color of the prompt that appears when you press space
|
|
|
|
# bottombar_text: The color of the text you type
|
|
|
|
# bottombar_bg
|
|
|
|
|
|
|
|
# hdg_1
|
|
|
|
# hdg_2
|
|
|
|
# hdg_3
|
|
|
|
# amfora_link: A link that Amfora supports viewing. For now this is only gemini://
|
|
|
|
# foreign_link: HTTP(S), Gopher, etc
|
|
|
|
# link_number: The silver number that appears to the left of a link
|
|
|
|
# regular_text: Normal gemini text, and plaintext documents
|
|
|
|
# quote_text
|
|
|
|
# preformatted_text
|
|
|
|
# list_text
|
|
|
|
|
|
|
|
# btn_bg: The bg color for all modal buttons
|
|
|
|
# btn_text: The text color for all modal buttons
|
|
|
|
|
|
|
|
# dl_choice_modal_bg
|
|
|
|
# dl_choice_modal_text
|
|
|
|
# dl_modal_bg
|
|
|
|
# dl_modal_text
|
|
|
|
# info_modal_bg
|
|
|
|
# info_modal_text
|
|
|
|
# error_modal_bg
|
|
|
|
# error_modal_text
|
|
|
|
# yesno_modal_bg
|
|
|
|
# yesno_modal_text
|
|
|
|
# tofu_modal_bg
|
|
|
|
# tofu_modal_text
|
2020-11-27 17:01:29 -05:00
|
|
|
# subscription_modal_bg
|
|
|
|
# subscription_modal_text
|
2020-07-28 16:58:32 -04:00
|
|
|
|
|
|
|
# input_modal_bg
|
|
|
|
# input_modal_text
|
|
|
|
# input_modal_field_bg: The bg of the input field, where you type the text
|
|
|
|
# input_modal_field_text: The color of the text you type
|
|
|
|
|
|
|
|
# bkmk_modal_bg
|
|
|
|
# bkmk_modal_text
|
|
|
|
# bkmk_modal_label
|
|
|
|
# bkmk_modal_field_bg
|
2020-08-27 22:40:40 -04:00
|
|
|
# bkmk_modal_field_text
|