Skip to content

OstryKot/crypto-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

crypto-status

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.

Installation

Installing bumblebee-status on Debian 12:

pip install bumblebee-status --break-system-packages To update: pip install --upgrade bumblebee-status --break-system-packages

Running the script as a system service:

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

Module installation

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

Configuration in the i3 window manager config file

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 
}

About

A status bar plugin for i3wm showing current prices of selected cryptocurrencies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages