Tiny arsenal of widgets for statusbars
Project description
About
Bargets is a small set of tiny but nice little widgets to be used in a statusbar, such as Polybar, i3bar etc.
Where does the name, "bargets", come from? [Bar] Wid[gets].
Installation
pip install bargets
Usage
To use a widget in your statusbar, simply provide path to the widget in your
statusbar's config. Make sure to check where pip installed the widgets, by
typing which <widget name>
against any of the widgets, so that you know what
path to use.
Example: polybar
The following is a snippet of how you could use the battery widget with polybar:
[battery]
type = custom/script
exec = $HOME/.local/bin/bargets-battery
interval = 5
Configuration: bargets.yaml
If you wish, you can configure each widget how you like in bargets.yaml. First, you need to create a file called bargets.yaml to ~/.config/bargets. You can copy example configuration from here.
Widgets
Widget | Command |
---|---|
CPU | bargets-cpu |
Battery | bargets-battery |
Requirements
Requirement | Note |
---|---|
Python | 3.8 or higher |
OS | MacOS, Linux |
Todo
- Add tests
- Add command line options
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bargets-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d12cfa3a3a855f3b981ace2daeddaec85ae7ca2826642f29824066af0540fb95 |
|
MD5 | 5efe8420eac35e4f1e826f5f1da78ae5 |
|
BLAKE2b-256 | fd2fbf752d544cc32ad5dd3e5d9debe73d316173556fd844cdf16ca4a854d23f |