modbot/README.md

33 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

# modbot
2024-07-30 04:02:05 -04:00
2024-08-20 18:38:25 -04:00
modbot is a seriously over-engineered program for querying different information about your system. Often used with a status bar like [dzen](https://github.com/robm/dzen), [lemonbar](https://github.com/LemonBoy/bar), or even the [dwm](https://dwm.suckless.org/) status bar via the `-x` flag.
Each part of the output is a module, and modbot is an agregator for these modules. You can query different information about your system like load average, CPU temperature, wireless SSID, and even the output of an arbitrary command or file.
2024-08-20 18:38:25 -04:00
The modules that are in the output are determined at compile time, within the `config.go` file.
2024-08-14 14:27:04 -04:00
2024-08-14 13:43:18 -04:00
## Attributions
This project was inspired by [gocaudices](https://github.com/LordRusk/gocaudices), which I've used in the past. I created this to be window manager and status bar agnostic, in addition to allowing more options for where the input comes from.
Some ideas for how special cases should be handled were taken from [mblocks](https://gitlab.com/mhdy/mblocks), which is another great project in the same vein as this.
2024-08-20 18:38:25 -04:00
## Usage
```
Usage of modbot:
-x set x root window name
```
2024-08-20 19:05:10 -04:00
## Information
2024-08-20 19:05:10 -04:00
* If an empty string is returned from a module, then the corresponding module will not be displayed.
* If a module returns a non-`nil` value for its error, or if the exit code of an exec module is non-zero, then `failed` will be shown for the corresponding module.
* Modules can be updated on an interval, signal, or both.
2024-08-25 01:19:04 -04:00
## TODO
* Iterate over the batteries found if a battery wasn't specified
* Do more testing if the current async implementation is safe
* Implement `disk_io` and `disk_usage` modules