| @@ -1,13 +1,27 @@ |
| 1 | # ============================================================================== |
| 2 | # NOTE: This file demonstrates using most of the configuration options in iamb! |
| 3 | # |
| 4 | # While some of the options in here are set to their defaults, many of them are |
| 5 | # not and might not actually be what you want to use! |
| 6 | # |
| 7 | # If you want to start with something simple, use `config.basic.toml` and add |
| 8 | # things in one-by-one as you need them. |
| 9 | # ============================================================================== |
| 1 | 10 | default_profile = "default" |
| 2 | 11 | |
| 12 | # Specify a user profile to log in as. |
| 13 | # |
| 14 | # Usually `user_id` is sufficient, and you will be prompted for a password at |
| 15 | # startup, but you can use `url` to override the typical homeserver discovery, |
| 16 | # and `password_file` to avoid being prompted for a password at login. |
| 3 | 17 | [profiles.default] |
| 4 | 18 | user_id = "@user:matrix.org" |
| 5 | 19 | password_file = "/path/to/password" |
| 6 | | url = "https://matrix.org" |
| 20 | url = "https://matrix-client.matrix.org" |
| 7 | 21 | |
| 8 | 22 | [settings] |
| 9 | | default_markup = "html" |
| 10 | | default_register = "+" |
| 23 | default_markup = "markdown" |
| 24 | default_register = "\"" |
| 11 | 25 | default_room = "#iamb-users:0x.badd.cafe" |
| 12 | 26 | default_split = "vertical" |
| 13 | 27 | external_edit_file_suffix = ".md" |
| @@ -29,31 +43,38 @@ typing_notice_send = true |
| 29 | 43 | user_gutter_width = 30 |
| 30 | 44 | username_display = "username" |
| 31 | 45 | |
| 46 | # Settings related to the encryption indicator: |
| 32 | 47 | [settings.encryption] |
| 33 | 48 | indicator = "only-encrypted" |
| 34 | 49 | indicator_location = "title|prompt" |
| 35 | 50 | |
| 51 | # Settings related to showing image previews in the terminal: |
| 36 | 52 | [settings.image_preview] |
| 37 | 53 | protocol = { type = "sixel", filter = "Nearest" } |
| 38 | 54 | size = { "width" = 66, "height" = 10 } |
| 39 | 55 | |
| 56 | # Settings related to proxying homeserver requests: |
| 40 | 57 | [settings.proxy] |
| 41 | 58 | url = "" # An empty string disables any proxying |
| 42 | 59 | auth = "Bearer abcd1234" |
| 43 | 60 | headers.X-Proxy-Config = "foobar" |
| 44 | 61 | |
| 62 | # Settings related to overriding how lists of rooms are sorted: |
| 45 | 63 | [settings.sort] |
| 46 | 64 | rooms = ["favorite", "lowpriority", "unread", "name"] |
| 47 | 65 | members = ["power", "id"] |
| 48 | 66 | |
| 67 | # Settings related to how iamb interacts with the terminal: |
| 49 | 68 | [settings.terminal] |
| 50 | 69 | cursor_shape = "default" |
| 51 | 70 | enable_extended_keys = false |
| 52 | 71 | enable_title = true |
| 53 | 72 | |
| 73 | # Settings related to overriding how specific users are shown: |
| 54 | 74 | [settings.users] |
| 55 | 75 | "@user:matrix.org" = { "name" = "John Doe", "color" = "magenta" } |
| 56 | 76 | |
| 77 | # Specify a specific tab and window layout to use every time iamb starts: |
| 57 | 78 | [layout] |
| 58 | 79 | style = "config" |
| 59 | 80 | |
| @@ -69,12 +90,14 @@ split = [ |
| 69 | 90 | { "window" = "#iamb-dev:0x.badd.cafe" } |
| 70 | 91 | ] |
| 71 | 92 | |
| 93 | # Map specific key inputs to other keys: |
| 72 | 94 | [macros.insert] |
| 73 | 95 | "jj" = "<Esc>" |
| 74 | 96 | |
| 75 | 97 | [macros."normal|visual"] |
| 76 | 98 | "V" = "<C-W>m" |
| 77 | 99 | |
| 100 | # Map command aliases to to other commands: |
| 78 | 101 | [aliases] |
| 79 | 102 | "c" = "chats" |
| 80 | 103 | "d" = "download" |
| @@ -85,11 +108,13 @@ split = [ |
| 85 | 108 | "ca" = "cancel" |
| 86 | 109 | "red" = "redact" |
| 87 | 110 | |
| 111 | # Specify different directories to use instead of the system defaults: |
| 88 | 112 | [dirs] |
| 89 | 113 | cache = "/home/user/.cache/iamb/" |
| 90 | 114 | logs = "/home/user/.local/share/iamb/logs/" |
| 91 | 115 | downloads = "/home/user/Downloads/" |
| 92 | 116 | |
| 117 | # Override default colors: |
| 93 | 118 | [theme] |
| 94 | 119 | timeline.state.color = "cyan" |
| 95 | 120 | timeline.redacted.color = "245" # light gray |