summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md11
-rw-r--r--main.go8
2 files changed, 9 insertions, 10 deletions
diff --git a/README.md b/README.md
index 43e4cf3..818d10e 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,6 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi
<img src="./assets/demo.gif" />
<img src="./assets/minimal.png" width="96%" />
-<img src="./assets/battery.png"/>
</div>
@@ -93,11 +92,11 @@ To make a custom colorscheme, check out the [template](./colorschemes/template.g
`-c`, `--color=NAME` Set a colorscheme.
`-m`, `--minimal` Only show CPU, Mem and Process widgets.
`-r`, `--rate=RATE` Number of times per second to update CPU and Mem widgets [default: 1].
-`-v`, `--version` Show version.
+`-v`, `--version` Print version and exit.
`-p`, `--percpu` Show each CPU in the CPU widget.
-`-a`, `--averagecpu` Show average CPU in the CPU widget.
-`-b`, `--bar` Show a statusbar with the time.
-`-t`, `--battery` Show battery level (defaults to false, `minimal` turns off)
+`-a`, `--averagecpu` Show average CPU in the CPU widget.
+`-s`, `--statusbar` Show a statusbar with the time.
+`-b`, `--battery` Show battery level widget (`minimal` turns off). [widget preview](./assets/battery.png)
## Building deb/rpms
@@ -121,7 +120,7 @@ This will place the built packages into the `dist` folder.
- [exrook/drawille-go](https://github.com/exrook/drawille-go)
- [shirou/gopsutil](https://github.com/shirou/gopsutil)
- [goreleaser/goreleaser](https://github.com/goreleaser/goreleaser)
-- [battery](https://github.com/distatus/battery)
+- [distatus/battery](https://github.com/distatus/battery)
## Stargazers over time
diff --git a/main.go b/main.go
index 869cedc..1a6abb0 100644
--- a/main.go
+++ b/main.go
@@ -62,12 +62,12 @@ Options:
-h, --help Show this screen.
-m, --minimal Only show CPU, Mem and Process widgets.
-r, --rate=RATE Number of times per second to update CPU and Mem widgets [default: 1].
- -v, --version Show version.
+ -v, --version Print version and exit.
-p, --percpu Show each CPU in the CPU widget.
-a, --averagecpu Show average CPU in the CPU widget.
-f, --fahrenheit Show temperatures in fahrenheit.
- -t, --battery Show battery charge over time ('minimal' disables; widget updates slowly)
- -b, --bar Show a statusbar with the time.
+ -s, --statusbar Show a statusbar with the time.
+ -b, --battery Show battery level widget ('minimal' turns off).
Colorschemes:
default
@@ -92,7 +92,7 @@ Colorschemes:
minimal, _ = args["--minimal"].(bool)
- statusbar, _ = args["--bar"].(bool)
+ statusbar, _ = args["--statusbar"].(bool)
rateStr, _ := args["--rate"].(string)
rate, err := strconv.ParseFloat(rateStr, 64)