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
bargets requires python3.10, so the way to install is:
python3.10 -m 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.10 or higher |
OS | MacOS, Linux |
Todo
- Add tests
- Add command line options
- Add screenshot(s)
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
File details
Details for the file bargets-0.1.0rc2.tar.gz
.
File metadata
- Download URL: bargets-0.1.0rc2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78046e153cf410594a797f10b440483daff4360927b8fa03bcbcab242042aa6b |
|
MD5 | 397e44b8385c7d7a40c24dda1fcf2993 |
|
BLAKE2b-256 | 0f646930e9fdeb87bcb3379c363b53e5f1aa867d5051e3988e7051da7e059ac3 |
File details
Details for the file bargets-0.1.0rc2-py3-none-any.whl
.
File metadata
- Download URL: bargets-0.1.0rc2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec43351892967c17d345b2dd512239970632de970c5eb16faf678b541b91230 |
|
MD5 | 7a4eacd03609b9e593b06246d90ad5f2 |
|
BLAKE2b-256 | 820c8ec45c4070b8ad5a19d52ef152859c9285e211340879ed4d97df0f9b5e2c |