Mail, himalaya, rectangle, offlineimap -> mbsync, imapnotify (not done yet), etc.
This commit is contained in:
parent
2cd20a9e97
commit
6a9e573731
3 changed files with 105 additions and 57 deletions
|
|
@ -1,43 +1,52 @@
|
||||||
{
|
{
|
||||||
"defaults" : {
|
"defaults" : {
|
||||||
|
"almostMaximizeWidth" : {
|
||||||
|
"float" : 0
|
||||||
|
},
|
||||||
|
"curtainChangeSize" : {
|
||||||
|
"int" : 0
|
||||||
|
},
|
||||||
"centerHalfCycles" : {
|
"centerHalfCycles" : {
|
||||||
"int" : 0
|
"int" : 0
|
||||||
},
|
},
|
||||||
"curtainChangeSize" : {
|
"ignoredSnapAreas" : {
|
||||||
"int" : 0
|
"int" : 0
|
||||||
},
|
},
|
||||||
"allowAnyShortcut" : {
|
"allowAnyShortcut" : {
|
||||||
"bool" : false
|
"bool" : false
|
||||||
},
|
},
|
||||||
"ignoredSnapAreas" : {
|
|
||||||
"int" : 0
|
|
||||||
},
|
|
||||||
"almostMaximizeWidth" : {
|
|
||||||
"float" : 0
|
|
||||||
},
|
|
||||||
"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
|
||||||
},
|
},
|
||||||
|
"specifiedWidth" : {
|
||||||
|
"float" : 1680
|
||||||
|
},
|
||||||
|
"footprintFade" : {
|
||||||
|
"int" : 0
|
||||||
|
},
|
||||||
"snapEdgeMarginBottom" : {
|
"snapEdgeMarginBottom" : {
|
||||||
"float" : 5
|
"float" : 5
|
||||||
},
|
},
|
||||||
"minimumWindowHeight" : {
|
|
||||||
"float" : 0
|
|
||||||
},
|
|
||||||
"footprintFade" : {
|
|
||||||
"int" : 0
|
|
||||||
},
|
|
||||||
"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"
|
||||||
}
|
}
|
||||||
4
bin/sync
4
bin/sync
|
|
@ -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…
Add table
Add a link
Reference in a new issue