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
|
||||
HostName dswan.insors.net
|
||||
HostName dswan.iocom.com
|
||||
User root
|
||||
|
||||
Host dustinswan
|
||||
HostName dustinswan.com
|
||||
User dustinswan
|
||||
|
@ -1,39 +1,39 @@
|
||||
[general]
|
||||
status_path = ~/.vdirsyncer/status/
|
||||
status_path = "~/.vdirsyncer/status/"
|
||||
|
||||
[pair fastmail_contacts]
|
||||
a = fastmail_contacts_local
|
||||
b = fastmail_contacts_remote
|
||||
a = "fastmail_contacts_local"
|
||||
b = "fastmail_contacts_remote"
|
||||
collections = ["from b"]
|
||||
conflict_resolution = b wins
|
||||
conflict_resolution = "b wins"
|
||||
|
||||
[storage fastmail_contacts_local]
|
||||
type = filesystem
|
||||
path = ~/Contacts/
|
||||
fileext = .vcf
|
||||
type = "filesystem"
|
||||
path = "~/Contacts/"
|
||||
fileext = ".vcf"
|
||||
|
||||
[storage fastmail_contacts_remote]
|
||||
type = carddav
|
||||
url = https://carddav.messagingengine.com
|
||||
auth = basic
|
||||
username = dustinswan@fastmail.com
|
||||
type = "carddav"
|
||||
url = "https://carddav.messagingengine.com"
|
||||
auth = "basic"
|
||||
username = "dustinswan@fastmail.com"
|
||||
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
||||
|
||||
[pair fastmail_calendar]
|
||||
a = fastmail_calendar_local
|
||||
b = fastmail_calendar_remote
|
||||
a = "fastmail_calendar_local"
|
||||
b = "fastmail_calendar_remote"
|
||||
collections = ["from b"]
|
||||
conflict_resolution = b wins
|
||||
conflict_resolution = "b wins"
|
||||
metadata = ["color", "displayname"]
|
||||
|
||||
[storage fastmail_calendar_local]
|
||||
type = filesystem
|
||||
path = ~/Calendars/
|
||||
fileext = .ics
|
||||
type = "filesystem"
|
||||
path = "~/Calendars/"
|
||||
fileext = ".ics"
|
||||
|
||||
[storage fastmail_calendar_remote]
|
||||
type = caldav
|
||||
url = https://caldav.messagingengine.com/
|
||||
auth = basic
|
||||
username = dustinswan@fastmail.com
|
||||
type = "caldav"
|
||||
url = "https://caldav.messagingengine.com/"
|
||||
auth = "basic"
|
||||
username = "dustinswan@fastmail.com"
|
||||
password.fetch = ["command", "~/dotfiles/bin/decrypt_password.sh", "dustinswan@fastmail.com"]
|
||||
|
Loading…
Reference in New Issue