diff --git a/goimapnotify/.config/goimapnotify/gmail.conf b/goimapnotify/.config/goimapnotify/gmail.conf new file mode 100644 index 0000000..e530dcb --- /dev/null +++ b/goimapnotify/.config/goimapnotify/gmail.conf @@ -0,0 +1,16 @@ +{ + "host": "imap.gmail.com", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": true + }, + "username": "akasroua@gmail.com", + "passwordCmd": "pass mail/gmail", + "xoauth2": true, + "onNewMail": "mbsync gmail", + "onNewMailPost": "notmuch new", + "boxes": [ + "INBOX" + ] +} diff --git a/goimapnotify/.config/goimapnotify/uni.conf b/goimapnotify/.config/goimapnotify/uni.conf new file mode 100644 index 0000000..7b33b67 --- /dev/null +++ b/goimapnotify/.config/goimapnotify/uni.conf @@ -0,0 +1,15 @@ +{ + "host": "correo.ugr.es", + "port": 993, + "tls": true, + "tlsOptions": { + "rejectUnauthorized": true + }, + "username": "akasroua@correo.ugr.es", + "passwordCmd": "pass mail/uni", + "onNewMail": "mbsync uni", + "onNewMailPost": "notmuch new", + "boxes": [ + "INBOX" + ] +} diff --git a/imapnotify/.config/imapnotify/gmail.js b/imapnotify/.config/imapnotify/gmail.js deleted file mode 100644 index d3407d6..0000000 --- a/imapnotify/.config/imapnotify/gmail.js +++ /dev/null @@ -1,15 +0,0 @@ -var child_process = require('child_process'); - -function getStdout(cmd) { - var stdout = child_process.execSync(cmd); - return stdout.toString().trim(); -} - -exports.host = "imap.gmail.com" -exports.port = 993; -exports.tls = true; -exports.username = "akasroua@gmail.com"; -exports.password = getStdout("pass mail/gmail"); -exports.onNewMail = "mbsync gmail" -exports.onNewMailPost = "notmuch new" -exports.boxes = [ "INBOX"]; diff --git a/imapnotify/.config/imapnotify/uni.js b/imapnotify/.config/imapnotify/uni.js deleted file mode 100644 index c4ec9d8..0000000 --- a/imapnotify/.config/imapnotify/uni.js +++ /dev/null @@ -1,15 +0,0 @@ -var child_process = require('child_process'); - -function getStdout(cmd) { - var stdout = child_process.execSync(cmd); - return stdout.toString().trim(); -} - -exports.host = "correo.ugr.es" -exports.port = 993; -exports.tls = true; -exports.username = "akasroua@correo.ugr.es"; -exports.password = getStdout("pass mail/uni"); -exports.onNewMail = "mbsync uni" -exports.onNewMailPost = "notmuch new" -exports.boxes = [ "INBOX"]; diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 7e57531..248bef7 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -328,8 +328,6 @@ bindswitch --reload --locked lid:off output $monitor enable exec wl-paste -t text --watch clipman store # kanshi exec kanshi -# imapnotify -exec imapnotify -c ~/.config/imapnotify/uni.js # tmux assign [app_id="tmux"] $workspace1 exec kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml