Displaying cryptocurrency prices in the status bar using the crypto_status.py module for bumblebee-status version 2.2.0.
Prices are fetched from Binance with the crypto_price.py script, running as a system service.
pip install bumblebee-status --break-system-packages
To update:
pip install --upgrade bumblebee-status --break-system-packages
Create a service file: sudo nano /etc/systemd/system/crypto_status.service
Add the following configuration to the file:
[Unit]
Description=My Python Script
After=network.target
[Service]
ExecStart=/usr/bin/python3 /home/your_username/crypto_status.py
WorkingDirectory=/home/your_username
StandardOutput=inherit
StandardError=inherit
Restart=always
User=your_username
[Install]
WantedBy=multi-user.target
Replace your_username
with your actual username /home/your_username/crypto_status.py
with the path to your script.
Enable the service: sudo systemctl enable crypto_status.service
Then start the service:
sudo systemctl start crypto_status.service
Copy the crypto_price.py
module into bumblebee-status. Place the file in the modules directory:
/home/pc/.local/lib/python3.11/site-packages/bumblebee_status/modules/contrib
Example configuration: in the config
file, add the module entry "-m crypto_price"
bar{
font pango: Hack Nerd Font 7
output DP-4
position top
status_command /usr/bin/bumblebee-status -m crypto_price git traffic nic publicip uptime time -p nic.exclude=lo -p traffic.exclude -p configfile=~/.config/bumblebee-status/bumblebee_status.toml -t iceberg-dark-powerline
}