Display today's Stripe gross volume in your Ubuntu/GNOME top bar using Argos.
Auto-refreshes every 5 minutes. Plays a coin sound on new sales. Click to see details or open Stripe Dashboard.
- Ubuntu / GNOME Shell
- Argos extension
- Python 3.6+
- Stripe account with API access
No external Python packages needed - uses only the standard library.
Required for secure API key storage in GNOME Keyring:
sudo apt install libsecret-toolsInstall from GNOME Extensions or via CLI:
gnome-extensions install argos@pew.worldwidemann.comIn Stripe Dashboard create a Restricted Key with minimal permissions:
| Resource | Permission |
|---|---|
| Core > Balance | Read |
Everything else can stay at None. This way the key can only read transaction amounts - nothing else.
The script reads the key from GNOME Keyring (encrypted, unlocked on login):
secret-tool store --label="Stripe API Key" service stripe type api-keyPaste your key (rk_live_...) and press Enter.
git clone https://github.com/hexplor/stripe-earnings.git
ln -s "$(pwd)/stripe-earnings/stripe_gross.5m.py" ~/.config/argos/
chmod +x stripe-earnings/stripe_gross.5m.pyThe 5m in the filename means "refresh every 5 minutes". Argos will pick it up automatically.
Rename the symlink in ~/.config/argos/:
| Filename | Interval |
|---|---|
stripe_gross.30s.py |
30 seconds |
stripe_gross.1m.py |
1 minute |
stripe_gross.5m.py |
5 minutes |
stripe_gross.10m.py |
10 minutes |
cd ~/.config/argos
mv stripe_gross.5m.py stripe_gross.1m.py # switch to 1 minute- Reads the Stripe API key from GNOME Keyring via
secret-tool - Fetches today's balance transactions (
charge+paymenttypes) from the Stripe API - Sums up gross volume, grouped by currency
- Compares with the previous amount — if it increased, plays a coin clink sound via
paplay - Outputs in Argos format for display in the top bar
Handles pagination automatically if you have more than 100 transactions per day. The coin sound is generated as a WAV file on first run (pure Python, no external assets) and cached in ~/.cache/stripe-earnings/.
Clicking the top bar item shows:
- Gross volume breakdown by currency
- Transaction date
- Link to Stripe Dashboard
- Manual refresh button
MIT
