Following the work in kintoandar/caixabreak by user @kintoandar, I made an Automator app for MacOSX, because I'm lazy.
- Follow the installation instructions of the original project.
- Open
Automator
- Create a new Application
- Drag a
Run Shell Script
to the right - In the text box, paste the following:
source ~/.zshrc; osascript -l JavaScript -e "app=Application.currentApplication(); app.includeStandardAdditions = true; app.displayNotification('$(/usr/local/bin/caixabreak -b | sed -n 2p)', {withTitle: 'CaixaBreak'})"
- Replace ~/.zshrc with the file where you store the
CGD_USER
andCGD_PASS
env variables
- Save with the name you want, ex:
caixa.app
- Congratulations! You can now open Spotlight/Alfred and search for the app you just created. A nice looking popup will appear in the top right corner of your screen with your balance.