https://github.com/cdump/stonks
Stocks widget for Awesome WM and WayBar
https://github.com/cdump/stonks
Last synced: 2 months ago
JSON representation
Stocks widget for Awesome WM and WayBar
- Host: GitHub
- URL: https://github.com/cdump/stonks
- Owner: cdump
- Created: 2022-12-18T10:13:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T10:45:18.000Z (almost 2 years ago)
- Last Synced: 2025-12-27T04:50:51.561Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stonks
Stocks widget for [Awesome WM](https://awesomewm.org/) and [WayBar](https://github.com/Alexays/Waybar) ([Sway WM](https://swaywm.org/))
## HowTo
### Awesome WM
```sh
$ cd ~/.config/awesome/
$ git clone --depth 1 https://github.com/cdump/stonks
$ cd stonks && poetry install # https://python-poetry.org/docs/#installation
$ vim rc.lua
# local stonks = require("stonks")
# ..
# stonks.addToWidget(widget, update_fcn, config)
#
# Example:
# stonks.addToWidget(widgets.quotes.widget, widgets.quotes.update, {
# {"moex_currency", "EUR_RUB__TOM", "€" },
# {"moex_currency", "USD000UTSTOM", "$" },
# {"binance", "BTCUSDT", "₿" }
# })
```