Scripts to be used with TextBar.
- This ruby counts unread mails in a mailbox via IMAP.
- Multiple accounts are possible.
- The configuration file uses YAML-format.
- Location of config-file:
$HOME/.textbar-scripts-config/mailboxes.yaml
. Location can be passed as an argument when calling the script. - When used with TextBar the script can perform a custom command for each mailbox
Sample YAML-config file:
unreadicon: " "
emptyicon: ""
unreachable: "❓"
unreachable: "⚠️"
accounts:
- display: "account 1 name"
username: "my@username"
password: "***"
command: "/usr/bin/open https://inbox.google.com/u/?authuser=my@username"
port: 993
ssl: true
imap: "imap.googlemail.com"
mailbox: "INBOX"
- display: "account 2 name"
username: "my2nd@username"
password: "mxmxukubkiaehync"
command: "/usr/bin/open https://mail.google.com/mail/u/?authuser=my2nd@username"
port: 993
ssl: true
imap: "imap.googlemail.com"
mailbox: "INBOX"
Place bookmarks in TextBar.
- YAML-config
title: "⭐"
divider: "—"
edit: "Edit"
list:
- name: "Site 1"
url: "https://www.site_1.com"
- --
- name: "Site 2"
url: "https://www.site_2.com"