From bbc0cdbf1aacbfc330eb5c5cf78e79e33086279b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 1 Oct 2024 20:05:21 +0200 Subject: Add configuration for dodo --- config/dodo/config.py | 43 +++++++++++++++++++++++++++++++++++++++++++ config/sway/bindsym-launch | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 config/dodo/config.py (limited to 'config') diff --git a/config/dodo/config.py b/config/dodo/config.py new file mode 100644 index 0000000..1e52b85 --- /dev/null +++ b/config/dodo/config.py @@ -0,0 +1,43 @@ +import dodo + +dodo.settings.smtp_accounts = ["email", "gmail", "fel"] +dodo.settings.email_address = { + "email": "Karel Kočí ", + "gmail": "Karel Kočí ", + "fel": "Karel Kočí ", +} +dodo.settings.sent_dir = { + "email": "~/.mail/email/sent/", + "gmail": "~/.mail/gmail/Drafts/", + "fel": "~/.mail/fel/Sent/", +} +dodo.settings.gnupg_keyid = "2B1F70F95F1B48DA2265A7FAA6BC8B8CEB31659B" + +dodo.settings.theme = dodo.themes.nord +dodo.settings.editor_command = "alacritty -e nvim '{file}'" +dodo.settings.file_browser_command = "alacritty -e ranger '{dir}'" +dodo.settings.file_picker_command = "alacritty -e ranger --choosefiles='{tempfile}'" +dodo.settings.sync_mail_interval = -1 +dodo.settings.default_thread_list_mode = "thread" +dodo.settings.search_font_size = 9 +dodo.settings.tag_font_size = 9 +dodo.settings.message_font_size = 9 +dodo.settings.tag_icons = { + "inbox": "📥", + "unread": "🆕", + "attachment": "🖇️", + "sent": ">", + "replied": "", + "flagged": "⭐", + "marked": "", + "signed": "", +} + +dodo.settings.default_to_html = False +dodo.settings.html_block_remote_requests = False +dodo.util.html2html = dodo.util.clean_html2html + +del dodo.keymap.global_keymap["`"] +del dodo.keymap.search_keymap["a"] +dodo.keymap.search_keymap["J"] = ('down 20', lambda p: [p.next_thread() for i in range(20)]) +dodo.keymap.search_keymap["K"] = ('up 20', lambda p: [p.previous_thread() for i in range(20)]) diff --git a/config/sway/bindsym-launch b/config/sway/bindsym-launch index b568a2d..8572004 100644 --- a/config/sway/bindsym-launch +++ b/config/sway/bindsym-launch @@ -19,7 +19,7 @@ bindsym $mod+Shift+w exec --no-startup-id ~/.config/sway/scripts/pass bindsym $mod+Shift+n exec --no-startup-id ~/.config/sway/scripts/notes for_window [ title="notes-terminal-window" ] floating enable sticky enable # Mail client -bindsym $mod+m exec astroid +bindsym $mod+m exec dodo # Run and configure synchronization -- cgit v1.2.3