From 9fcdfe5d6b1c5d518d79345571038d90b6bd6dbf Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 23 Jun 2025 15:41:24 +0200 Subject: feat: Add configuration from private dotfiles repo --- aerc.nix | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 aerc.nix (limited to 'aerc.nix') diff --git a/aerc.nix b/aerc.nix new file mode 100644 index 0000000..1d3b1e2 --- /dev/null +++ b/aerc.nix @@ -0,0 +1,199 @@ +{ + pkgs, + inputs, + ... +}: { + xdg.configFile."aerc/map.conf".text = '' + 1.Open=tag:github and not tag:checked + 2.Jira=tag:jira and not tag:checked + 2.Confluence=tag:confluence and not tag:checked + 4.Inbox=tag:inbox and not tag:archived and not tag:deleted and not tag:github + 5.Done=tag:github and tag:checked + ''; + + xdg.configFile."aerc/aerc.conf".text = '' + [general] + + [statusline] + + [viewer] + + [compose] + + [multipart-converters] + + [filters] + text/plain=colorize + text/calendar=calendar + text/html=pandoc -f html -t plain + message/delivery-status=colorize + message/rfc822=colorize + .headers=colorize + + [openers] + + [hooks] + mail-received=notify-send "Mail from $AERC_FROM_NAME" "$AERC_FOLDER/$AERC_SUBJECT" + + [templates] + + [ui] + threading-enabled=true + fuzzy-complete=true + icon-attachment=📎 + column-labels = {{map .Labels \ + (exclude "read") \ + (exclude "sent") \ + (exclude "github") \ + (exclude "unread") \ + (case "open" "O") \ + (case "jira" "J") \ + (case "confluence" "W") \ + (case "merged" "M") \ + (case "closed" "C") \ + (case "approved" "A") \ + (case "checked" "X") \ + | join ""}} + index-columns = date<=,name<10,flags>=,labels>5,subject<* + ''; + + xdg.configFile."aerc/binds.conf".text = '' + # Binds are of the form = + # To use '=' in a key sequence, substitute it with "Eq": "" + # If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit + = :prev-tab + = :next-tab + = :term + ? = :help keys + + [messages] + q = :quit + + j = :next + = :next + = :next 50% + = :next 100% + = :next 100% + + k = :prev + = :prev + = :prev 50% + = :prev 100% + = :prev 100% + g = :select 0 + G = :select -1 + + J = :next-folder + K = :prev-folder + H = :collapse-folder + L = :expand-folder + + v = :mark -t + V = :mark -v + + T = :toggle-threads + + = :view + d = :prompt 'Really delete this message?' 'delete-message' + D = :delete + A = :archive flat + + C = :compose + + rr = :reply -a + rq = :reply -aq + Rr = :reply + Rq = :reply -q + RR = :read + RC = :tag +checked + + c = :cf + $ = :term + ! = :term + | = :pipe + + / = :search + \ = :filter + n = :next-result + N = :prev-result + = :clear + + z = :pipe -b workctl open + Z = :pipe workctl edit + PA = :pipe -b workctl approve + PM = :pipe -b workctl merge + PD = :pipe -b workctl dependabot + + [messages:folder=Drafts] + = :recall + + [view] + / = :toggle-key-passthrough/ + q = :close + O = :open + S = :save + | = :pipe + D = :delete + A = :archive flat + + = :open-link + + f = :forward + rr = :reply -a + rq = :reply -aq + Rr = :reply + Rq = :reply -q + + H = :toggle-headers + = :prev-part + = :next-part + J = :next + K = :prev + + [view::passthrough] + $noinherit = true + $ex = + = :toggle-key-passthrough + + [compose] + # Keybindings used when the embedded terminal is not selected in the compose + # view + $noinherit = true + $ex = + = :prev-field + = :next-field + = :switch-account -p + = :switch-account -n + = :next-field + = :prev-field + = :prev-tab + = :next-tab + + [compose::editor] + # Keybindings used when the embedded terminal is selected in the compose view + $noinherit = true + $ex = + = :prev-field + = :next-field + = :prev-tab + = :next-tab + + [compose::review] + # Keybindings used when reviewing a message to be sent + y = :send + n = :abort + v = :preview + p = :postpone + q = :choose -o d discard abort -o p postpone postpone + e = :edit + a = :attach + d = :detach + + [terminal] + $noinherit = true + $ex = + + = :prev-tab + = :next-tab + ''; +} -- cgit v1.2.3