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