Mail, himalaya, rectangle, offlineimap -> mbsync, imapnotify (not done yet), etc.

master
Dustin Swan 3 years ago
parent 2cd20a9e97
commit 6a9e573731
Signed by: dustinswan
GPG Key ID: AB49BD6B2B3A6377

@ -1,43 +1,52 @@
{ {
"defaults" : { "defaults" : {
"centerHalfCycles" : { "almostMaximizeWidth" : {
"int" : 0 "float" : 0
}, },
"curtainChangeSize" : { "curtainChangeSize" : {
"int" : 0 "int" : 0
}, },
"allowAnyShortcut" : { "centerHalfCycles" : {
"bool" : false "int" : 0
}, },
"ignoredSnapAreas" : { "ignoredSnapAreas" : {
"int" : 0 "int" : 0
}, },
"almostMaximizeWidth" : { "allowAnyShortcut" : {
"float" : 0 "bool" : false
}, },
"screenEdgeGapBottom" : { "screenEdgeGapBottom" : {
"float" : 0 "float" : 0
}, },
"moveCursor" : {
"int" : 0
},
"todoMode" : { "todoMode" : {
"bool" : false "bool" : false
}, },
"screenEdgeGapTop" : { "screenEdgeGapTop" : {
"float" : 0 "float" : 0
}, },
"SUEnableAutomaticChecks" : { "todoSidebarWidth" : {
"bool" : true "float" : 400
}, },
"gapSize" : { "fullIgnoreBundleIds" : {
"float" : 4
},
"specifiedHeight" : {
"float" : 1050
}, },
"disabledApps" : { "disabledApps" : {
}, },
"todoSidebarWidth" : { "gapSize" : {
"float" : 400 "float" : 2
}, },
"todoApplication" : { "todoApplication" : {
"string" : "io.alacritty"
},
"SUEnableAutomaticChecks" : {
"bool" : true
}, },
"centeredDirectionalMove" : { "centeredDirectionalMove" : {
"int" : 0 "int" : 0
@ -48,9 +57,21 @@
"snapEdgeMarginTop" : { "snapEdgeMarginTop" : {
"float" : 5 "float" : 5
}, },
"autoMaximize" : {
"int" : 0
},
"snapModifiers" : { "snapModifiers" : {
"int" : 0 "int" : 0
}, },
"applyGapsToMaximize" : {
"int" : 2
},
"moveCursorAcrossDisplays" : {
"int" : 0
},
"applyGapsToMaximizeHeight" : {
"int" : 0
},
"altThirdCycle" : { "altThirdCycle" : {
"int" : 0 "int" : 0
}, },
@ -60,21 +81,27 @@
"hideMenubarIcon" : { "hideMenubarIcon" : {
"bool" : false "bool" : false
}, },
"minimumWindowHeight" : {
"float" : 0
},
"traverseSingleScreen" : { "traverseSingleScreen" : {
"int" : 0 "int" : 0
}, },
"snapEdgeMarginBottom" : { "specifiedWidth" : {
"float" : 5 "float" : 1680
},
"minimumWindowHeight" : {
"float" : 0
}, },
"footprintFade" : { "footprintFade" : {
"int" : 0 "int" : 0
}, },
"snapEdgeMarginBottom" : {
"float" : 5
},
"screenEdgeGapRight" : { "screenEdgeGapRight" : {
"float" : 0 "float" : 0
}, },
"notifiedOfProblemApps" : {
"bool" : false
},
"screenEdgeGapLeft" : { "screenEdgeGapLeft" : {
"float" : 0 "float" : 0
}, },
@ -85,7 +112,7 @@
"bool" : true "bool" : true
}, },
"subsequentExecutionMode" : { "subsequentExecutionMode" : {
"int" : 1 "int" : 4
}, },
"footprintBorderWidth" : { "footprintBorderWidth" : {
"float" : 2 "float" : 2
@ -94,14 +121,14 @@
"bool" : false "bool" : false
}, },
"windowSnapping" : { "windowSnapping" : {
"int" : 2 "int" : 1
},
"todo" : {
"int" : 0
}, },
"snapEdgeMarginLeft" : { "snapEdgeMarginLeft" : {
"float" : 5 "float" : 5
}, },
"todo" : {
"int" : 1
},
"obtainWindowOnClick" : { "obtainWindowOnClick" : {
"int" : 0 "int" : 0
}, },
@ -110,15 +137,15 @@
}, },
"footprintAlpha" : { "footprintAlpha" : {
"float" : 0.30000001192092896 "float" : 0.30000001192092896
},
"footprintColor" : {
}, },
"minimumWindowWidth" : { "minimumWindowWidth" : {
"float" : 0 "float" : 0
}, },
"attemptMatchOnNextPrevDisplay" : { "attemptMatchOnNextPrevDisplay" : {
"int" : 0 "int" : 0
},
"footprintColor" : {
}, },
"almostMaximizeHeight" : { "almostMaximizeHeight" : {
"float" : 0 "float" : 0
@ -135,22 +162,22 @@
"keyCode" : 123, "keyCode" : 123,
"modifierFlags" : 1835008 "modifierFlags" : 1835008
}, },
"bottomRightSixth" : {
"keyCode" : 22,
"modifierFlags" : 1835008
},
"maximizeHeight" : { "maximizeHeight" : {
"keyCode" : 126, "keyCode" : 126,
"modifierFlags" : 917504 "modifierFlags" : 917504
}, },
"topLeft" : { "bottomRightSixth" : {
"keyCode" : 32, "keyCode" : 22,
"modifierFlags" : 786432 "modifierFlags" : 1835008
}, },
"bottomCenterSixth" : { "bottomCenterSixth" : {
"keyCode" : 23, "keyCode" : 23,
"modifierFlags" : 1835008 "modifierFlags" : 1835008
}, },
"topLeft" : {
"keyCode" : 32,
"modifierFlags" : 786432
},
"bottomLeftSixth" : { "bottomLeftSixth" : {
"keyCode" : 21, "keyCode" : 21,
"modifierFlags" : 1835008 "modifierFlags" : 1835008
@ -179,24 +206,24 @@
"keyCode" : 125, "keyCode" : 125,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"rightHalf" : {
"keyCode" : 124,
"modifierFlags" : 786432
},
"bottomLeft" : { "bottomLeft" : {
"keyCode" : 38, "keyCode" : 38,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"smaller" : { "rightHalf" : {
"keyCode" : 27, "keyCode" : 124,
"modifierFlags" : 786432
},
"centerThird" : {
"keyCode" : 3,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"bottomRight" : { "bottomRight" : {
"keyCode" : 40, "keyCode" : 40,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"centerThird" : { "firstTwoThirds" : {
"keyCode" : 3, "keyCode" : 14,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"topRightSixth" : { "topRightSixth" : {
@ -211,10 +238,14 @@
"keyCode" : 126, "keyCode" : 126,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"firstTwoThirds" : { "smaller" : {
"keyCode" : 14, "keyCode" : 27,
"modifierFlags" : 786432 "modifierFlags" : 786432
}, },
"almostMaximize" : {
"keyCode" : 36,
"modifierFlags" : 1835008
},
"center" : { "center" : {
"keyCode" : 8, "keyCode" : 8,
"modifierFlags" : 786432 "modifierFlags" : 786432
@ -241,5 +272,5 @@
} }
}, },
"bundleId" : "com.knollsoft.Rectangle", "bundleId" : "com.knollsoft.Rectangle",
"version" : "50" "version" : "55"
} }

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
if command -v offlineimap &> /dev/null; then if command -v mbsync &> /dev/null; then
offlineimap mbsync -a
fi fi
if command -v vdirsyncer &> /dev/null; then if command -v vdirsyncer &> /dev/null; then

@ -1,14 +1,15 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ aerc vdirsyncer ]; home.packages = with pkgs; [ aerc vdirsyncer imapnotify ];
programs.offlineimap.enable = true; programs.mbsync.enable = true;
programs.msmtp.enable = true; programs.msmtp.enable = true;
programs.neomutt = { programs.neomutt = {
enable = true; enable = true;
sidebar.enable = true; sidebar.enable = true;
sort = "reverse-threads"; sort = "reverse-threads";
}; };
programs.himalaya.enable = true;
accounts.email = { accounts.email = {
maildirBasePath = "Mail"; maildirBasePath = "Mail";
@ -28,18 +29,34 @@
}; };
userName = "dustinswan@fastmail.com"; userName = "dustinswan@fastmail.com";
imap.host = "mail.messagingengine.com"; imap.host = "mail.messagingengine.com";
imap.port = 993;
smtp.host = "mail.messagingengine.com"; smtp.host = "mail.messagingengine.com";
smtp.port = 465;
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg"; passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg";
offlineimap.enable = true; mbsync = {
enable = true;
create = "maildir";
};
# imapnotify = {
# enable = true;
# boxes = [ "INBOX" ];
# onNotify = "\${pkgs.isync}/bin/mbsync -a";
# onNotifyPost = { mail = "\${pkgs.noti}/bin/noti 'New mail'"; };
# };
mu.enable = true;
msmtp.enable = true; msmtp.enable = true;
neomutt.enable = true; neomutt.enable = true;
signature = { himalaya = {
text = '' enable = true;
Dustin Swan settings = {
dustinswan.com sent-folder = "INBOX.Sent";
''; draft-folder = "INBOX.Drafts";
showSignature = "append"; };
}; };
# signature = {
# text = ''Dustin Swan | dustinswan.com'';
# showSignature = "append";
# };
}; };
}; };
}; };

Loading…
Cancel
Save