Various dotfile changes. Emacs, mail, music, etc.
parent
9eceac229e
commit
bb5320b9d2
Binary file not shown.
@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env /usr/local/bin/node
|
||||||
|
const bitbar = require('bitbar');
|
||||||
|
const exec = require('child_process').exec;
|
||||||
|
|
||||||
|
let cmd = `/usr/local/bin/mu find flag:unread AND NOT flag:trashed AND \\(maildir:/Fastmail/INBOX OR maildir:/IOCOM/INBOX\\) --fields \"l f s\"`;
|
||||||
|
|
||||||
|
exec(cmd, function(error, stdout, stderr) {
|
||||||
|
|
||||||
|
let mails = stderr.match(/no matches/)
|
||||||
|
? []
|
||||||
|
: stdout.trim().split("\n").map(parseMailString);
|
||||||
|
|
||||||
|
bitbar([
|
||||||
|
':envelope:' + mails.length || "",
|
||||||
|
bitbar.sep,
|
||||||
|
...mails
|
||||||
|
]);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
function parseMailString(m) {
|
||||||
|
const MAX = 80;
|
||||||
|
|
||||||
|
let matches = m.match(/([^\s]+)\s(.*)/);
|
||||||
|
|
||||||
|
let filename = matches[1];
|
||||||
|
let text = matches[2].substring(0, MAX) + (matches[2].length > MAX ? "..." : "");
|
||||||
|
|
||||||
|
return {
|
||||||
|
text,
|
||||||
|
bash: "/usr/local/bin/emacsclient -n " + filename,
|
||||||
|
terminal: false
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
visualizer_fifo_path = "/tmp/mpd.fifo"
|
||||||
|
visualizer_output_name = "my_fifo"
|
||||||
|
visualizer_sync_interval = "30"
|
||||||
|
visualizer_in_stereo = "yes"
|
||||||
|
#visualizer_type = "wave" (spectrum/wave)
|
||||||
|
#visualizer_type = "spectrum" (spectrum/wave)
|
||||||
|
mpd_music_dir = "/Users/dustinswan/Music"
|
||||||
|
user_interface = alternative
|
@ -1,3 +1,7 @@
|
|||||||
Host dswan
|
Host dswan
|
||||||
HostName dswan.insors.net
|
HostName dswan.iocom.com
|
||||||
|
User root
|
||||||
|
|
||||||
|
Host dustinswan
|
||||||
|
HostName dustinswan.com
|
||||||
User dustinswan
|
User dustinswan
|
||||||
|
@ -1,39 +1,39 @@
|
|||||||
[general]
|
[general]
|
||||||
status_path = ~/.vdirsyncer/status/
|
status_path = "~/.vdirsyncer/status/"
|
||||||
|
|
||||||
[pair fastmail_contacts]
|
[pair fastmail_contacts]
|
||||||
a = fastmail_contacts_local
|
a = "fastmail_contacts_local"
|
||||||
b = fastmail_contacts_remote
|
b = "fastmail_contacts_remote"
|
||||||
collections = ["from b"]
|
collections = ["from b"]
|
||||||
conflict_resolution = b wins
|
conflict_resolution = "b wins"
|
||||||
|
|
||||||
[storage fastmail_contacts_local]
|
[storage fastmail_contacts_local]
|
||||||
type = filesystem
|
type = "filesystem"
|
||||||
path = ~/Contacts/
|
path = "~/Contacts/"
|
||||||
fileext = .vcf
|
fileext = ".vcf"
|
||||||
|
|
||||||
[storage fastmail_contacts_remote]
|
[storage fastmail_contacts_remote]
|
||||||
type = carddav
|
type = "carddav"
|
||||||
url = https://carddav.messagingengine.com
|
url = "https://carddav.messagingengine.com"
|
||||||
auth = basic
|
auth = "basic"
|
||||||
username = dustinswan@fastmail.com
|
username = "dustinswan@fastmail.com"
|
||||||
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
||||||
|
|
||||||
[pair fastmail_calendar]
|
[pair fastmail_calendar]
|
||||||
a = fastmail_calendar_local
|
a = "fastmail_calendar_local"
|
||||||
b = fastmail_calendar_remote
|
b = "fastmail_calendar_remote"
|
||||||
collections = ["from b"]
|
collections = ["from b"]
|
||||||
conflict_resolution = b wins
|
conflict_resolution = "b wins"
|
||||||
metadata = ["color", "displayname"]
|
metadata = ["color", "displayname"]
|
||||||
|
|
||||||
[storage fastmail_calendar_local]
|
[storage fastmail_calendar_local]
|
||||||
type = filesystem
|
type = "filesystem"
|
||||||
path = ~/Calendars/
|
path = "~/Calendars/"
|
||||||
fileext = .ics
|
fileext = ".ics"
|
||||||
|
|
||||||
[storage fastmail_calendar_remote]
|
[storage fastmail_calendar_remote]
|
||||||
type = caldav
|
type = "caldav"
|
||||||
url = https://caldav.messagingengine.com/
|
url = "https://caldav.messagingengine.com/"
|
||||||
auth = basic
|
auth = "basic"
|
||||||
username = dustinswan@fastmail.com
|
username = "dustinswan@fastmail.com"
|
||||||
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
||||||
|
Loading…
Reference in New Issue