# This is the default config file. # It also shows all the default values, if you don't create the file. # You can edit this file to set your own configuration for Amfora. # When Amfora updates, defaults may change, but this file on your drive will not. # You can always get the latest defaults on GitHub. # https://github.com/makeworld-the-better-one/amfora/blob/master/default-config.toml # Please also check out the Amfora Wiki for more help # https://github.com/makeworld-the-better-one/amfora/wiki # gemini://makeworld.space/amfora-wiki/ # 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 # example.com:123 [a-general] # Press Ctrl-H to access it home = "gemini://gemini.circumlunar.space" # 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 # 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. # If a command is set, than the URL will be added (in quotes) to the end of the command. # A space will be prepended to the URL. # # The best way to define a command is using a string array. # Examples: # http = ['firefox'] # http = ['custom-browser', '--flag', '--option=2'] # http = ['/path/with spaces/in it/firefox'] # # 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. http = 'default' # Any URL that will accept a query string can be put here search = "gemini://geminispace.info/search" # Whether colors will be used in the terminal color = true # Whether ANSI color codes from the page content should be rendered ansi = true # Whether to replace list asterisks with unicode bullets bullets = true # Whether to show link after link text show_link = false # A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up. left_margin = 0.15 # The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped. max_width = 100 # 'downloads' is the path to a downloads folder. # An empty value means the code will find the default downloads folder for your system. # If the path does not exist it will be created. # Note the use of single quotes, so that backslashes will not be escaped. downloads = '/home/erin/Downloads' # 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 # When a scrollbar appears. "never", "auto", and "always" are the only valid values. # "auto" means the scrollbar only appears when the page is longer than the window. scrollbar = "auto" # Underline non-gemini URLs # This is done to help color blind users underline = true [auth] # Authentication settings # Note the use of single quotes for values, so that backslashes will not be escaped. [auth.certs] # Client certificates # Set domain name equal to path to client cert # "example.com" = 'mycert.crt' [auth.keys] # Client certificate keys # Set domain name equal to path to key for the client cert above # "example.com" = 'mycert.key' [keybindings] bind_bottom = ":" bind_quit = "q" bind_reload = "R" bind_back = "H" bind_forward = "L" bind_next_tab = "J" bind_prev_tab = "K" bind_edit = "o" bind_new_tab = "O" bind_close_tab = "X" bind_save = "S" bind_home = "]" bind_bookmarks = "b" bind_add_bookmark = "B" [url-handlers] # Allows setting the commands to run for various URL schemes. # E.g. to open FTP URLs with FileZilla set the following key: # ftp = ['filezilla'] # You can set any scheme to 'off' or '' to disable handling it, or # just leave the key unset. # # DO NOT use this for setting the HTTP command. # Use the http setting in the "a-general" section above. # # NOTE: These settings are overrided by the ones in the proxies section. # # The best way to define a command is using a string array. # Examples: # magnet = ['transmission'] # foo = ['custom-browser', '--flag', '--option=2'] # tel = ['/path/with spaces/in it/telephone'] # # 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. # This is a special key that defines the handler for all URL schemes for which # no handler is defined. # It uses the special value 'default', which will try and use the default # application on your computer for opening this kind of URI. other = 'default' magnet = ['aria2c'] mailto = ['thunderbird'] file = ['xplr'] # [[mediatype-handlers]] section # --------------------------------- # # Specify what applications will open certain media types. # By default your default application will be used to open the file when you select "Open". # You only need to configure this section if you want to override your default application, # or do special things like streaming. # # Note the use of single quotes for commands, so that backslashes will not be escaped. # # # To open jpeg files with the feh command: # [[mediatype-handlers]] cmd = ['imv'] types = ["image"] # # Each command that you specify must come under its own [[mediatype-handlers]]. You may # specify as many [[mediatype-handlers]] as you want to setup multiple commands. # # If the subtype is omitted then the specified command will be used for the # entire type: # [[mediatype-handlers]] cmd = ['mpv'] types = ["audio", "video"] stream = true [cache] # Options for page cache - which is only for text pages # Increase the cache size to speed up browsing at the expense of memory # Zero values mean there is no limit max_size = 0 # Size in bytes max_pages = 30 # The maximum number of pages the cache will store # How long a page will stay in cache, in seconds. timeout = 1800 # 30 mins [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. [subscriptions] # For tracking feeds and pages # Whether a pop-up appears when viewing a potential feed popup = true # 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. update_interval = 1800 # 30 mins # 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. workers = 3 # The number of subscription updates displayed per page. entries_per_page = 20 [theme] # bg = "#1E1E2E" tab_num = "#cba6f7" tab_divider = "#a6adc8" bottombar_text = "#94e2d5" bottombar_bg = "#45475a" scrollbar = "#45475a" hdg_1 = "#cba6f7" hdg_2 = "#cba6f7" hdg_3 = "#cba6f7" amfora_link = "#f38ba8" foreign_link = "#fab387" link_number = "#94e2d5" regular_text = "#cdd6f4" quote_text = "#f9e2af" preformatted_text = "#fab387" list_text = "#cdd6f4" btn_bg = "#45475a" btn_text = "#cdd6f4" dl_choice_modal_bg = "#45475a" dl_choice_modal_text = "#cdd6f4" dl_modal_bg = "#45475a" dl_modal_text = "#cdd6f4" info_modal_bg = "#45475a" info_modal_text = "#cdd6f4" error_modal_bg = "#f38ba8" error_modal_text = "#181825" yesno_modal_bg = "#45475a" yesno_modal_text = "#cdd6f4" tofu_modal_bg = "#45475a" tofu_modal_text = "#cdd6f4" subscription_modal_bg = "#45475a" subscription_modal_text = "#cdd6f4" input_modal_bg = "#45475a" input_modal_text = "#cdd6f4" input_modal_field_bg = "#313244" input_modal_field_text = "#cdd6f4" bkmk_modal_bg = "#45475a" bkmk_modal_text = "#cdd6f4" bkmk_modal_label = "#cdd6f4" bkmk_modal_field_bg = "#313244" bkmk_modal_field_text = "#cdd6f4"