A plugin for BitBar that shows your unread Trello notification count with a drop-down list of clickable recent notifications.
- Install BitBar Trello Plugin:
bitbar://openPlugin?title=Trello&src=https://raw.githubusercontent.com/kodie/bitbar-trello/master/trello.15m.sh
- After the plugin is installed, it will automatically create the config file
~/.bitbar_trello
. You will need to fill out theapiKey
andapiToken
variables which we will be doing in the following steps. - Go to https://trello.com/app-key
- The text under
Key:
is your API Key. Put it in theapiKey
variable in your config file. - On that same page, click on the
Token
link. - You should be asked to "Let Server Token use your account?". Click the
Allow
button. - Your API Token should then be displayed. Put it in the
apiToken
variable in your config file. - Refresh BitBar Trello Plugin:
bitbar://refreshPlugin?name=trello.*?.sh
When you first install the BitBar Trello Plugin, it will automatically create the config file ~/.bitbar_trello
. This file is where you put your API Key and Token, however there are additional variables that you can set in there to change the way the plugin looks and functions.
-
apiKey
- Your Trello API Key- Default:
""
- Example:
apiKey="c9ff119073ea2567730fb42e3a4fe805"
- Required
- Default:
-
apiToken
- Your Trello API Token- Default:
""
- Example:
apiToken="gpD9HsYz2nJKaWz4Blr6JeVpv9Rct0PzeiwJyj9rwGZutmoSwDM5Hxl0x03ORGcT"
- Required
- Default:
-
limit
- Number of recent notifications to display in the dropdown- Default:
"20"
- Example:
limit="50"
- Can be any number from 1 to 1000
- Default:
-
readColor
- Read notification color- Default:
""
- Example 1:
readColor="red"
- Example 2:
readColor="#ff0000"
- Setting to blank will use the system default
- Color names or HEX values can be used
- Default:
-
readFont
- Read notification font- Default:
""
- Example:
readFont="Georgia"
- Setting to blank will use the system default
- Default:
-
readSize
- Read notification font size- Default:
"15"
- Example:
readSize="12"
- Setting to blank will use the system default
- Default:
-
unreadColor
- Unread notification color- Default:
"blue"
- Example 1:
unreadColor="orange"
- Example 2:
unreadColor="#ffa500"
- Setting to blank will use the system default
- Color names or HEX values can be used
- Default:
-
unreadFont
- Unread notification font- Default:
""
- Example:
unreadFont="Georgia-Bold"
- Setting to blank will use the system default
- Default:
-
unreadSize
- Unread notification font size- Default:
"15"
- Example:
unreadSize="20"
- Setting to blank will use the system default
- Default:
-
truncLength
- Number of characters before the notification text is truncated- Default:
"70"
- Example:
truncLength="30"
- Setting to blank will disable truncating
- Default:
-
truncSuffix
- Text to use after truncating- Default:
"..."
- Example:
truncSuffix="..."
- Default:
-
useIcons
- Whether emoji icons should be displayed next to notifications or not- Default:
"1"
- Example:
useIcons="0"
- 0=no, 1=yes
- Default:
-
unreadDisplay
- Unread display mode- Default:
"1"
- Example:
unreadDisplay="3"
- 0=none, 1=beside icon/title, 2=rotated with icon/title, 3=in dropdown
- Default:
-
unreadEcho
- Unread count text- Default:
"%unread%"
- Example:
unreadEcho="Unread: %unread%"
%unread%
will be replaced with unread count number
- Default:
-
title
- Text to be displayed on system bar- Default:
""
- Example:
title="Trello"
- Can be set to blank to display icon only
- If both
title
andicon
are set to blank,title
will automatically be set to "Trello".
- Default:
-
icon
- Base64 icon to use in system bar- Default: (The Trello logo in Base64)
- Example:
icon=""
- Can be set to blank to disable icon
-
nIcon_$notificationType
- Emoji Icon to display next to the notification- Default: (Depends on
$notificationType
) - Example:
nIcon_cardDueSoon="🕓"
- Default: (Depends on
-
nText_$notificationType
- Text to be displayed for notification- Default: (Depends on
$notificationType
) - Example:
nText_addedToCard="%name% added you to the card %card%"
%name%
will be replaced with the person's name%card%
will be replaced with the card name%board%
will be replaced with the board name%organization%
will be replaced with the organization name
- Default: (Depends on
MIT. See the License file for more info.