diff --git a/README.md b/README.md index ca7be96..c37da93 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi The original author of gotop has re-implemented the application in Rust, as [ytop](https://github.com/cjbassi/ytop). This is a fork of original gotop project with a new maintainer. - - + + @@ -166,21 +166,30 @@ build massive edifices, you're in for disappointment. ### CLI Options `-c`, `--color=NAME` Set a colorscheme. -`-m`, `--minimal` Only show CPU, Mem and Process widgets. (DEPRECATED for `-l minimal`) +`-m`, `--minimal` Only show CPU, Mem and Process widgets. (DEPRECATED, use `-l minimal`) `-r`, `--rate=RATE` Number of times per second to update CPU and Mem widgets [default: 1]. `-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. `-s`, `--statusbar` Show a statusbar with the time. -`-b`, `--battery` Show battery level widget (`minimal` turns off). [preview](./assets/screenshots/battery.png) (DEPRECATED for `-l battery`) -`-i`, `--interface=NAME` Select network interface [default: all]. +`-b`, `--battery` Show battery level widget (`minimal` turns off). (DEPRECATED, use `-l battery`) +`-i`, `--interface=NAME` Select network interface [default: all]. `-l`, `--layout=NAME` Choose a layout. gotop searches for a file by NAME in \$XDG_CONFIG_HOME/gotop, then relative to the current path. "-" reads a layout from stdin, allowing for simple, one-off layouts such as `echo net | gotop -l -` Several interfaces can be defined using comma separated values. Interfaces can also be ignored using `!` +## More screen shots + +#### "-l battery" + +#### "-l minimal" + +#### Custom (layouts/procs) + + ## Built With - [gizak/termui](https://github.com/gizak/termui) diff --git a/assets/screenshots/battery.png b/assets/screenshots/battery.png index b70f2ab..4698d1a 100644 Binary files a/assets/screenshots/battery.png and b/assets/screenshots/battery.png differ diff --git a/assets/demos/demo.gif b/assets/screenshots/demo.gif similarity index 100% rename from assets/demos/demo.gif rename to assets/screenshots/demo.gif diff --git a/assets/screenshots/kitchensink.gif b/assets/screenshots/kitchensink.gif new file mode 100644 index 0000000..6061c84 Binary files /dev/null and b/assets/screenshots/kitchensink.gif differ diff --git a/assets/screenshots/minimal.png b/assets/screenshots/minimal.png index efe5cc3..354b60b 100644 Binary files a/assets/screenshots/minimal.png and b/assets/screenshots/minimal.png differ diff --git a/assets/screenshots/procs.png b/assets/screenshots/procs.png new file mode 100644 index 0000000..0e4e7a6 Binary files /dev/null and b/assets/screenshots/procs.png differ diff --git a/layout/layout.go b/layout/layout.go index 3214b97..1dbcaa4 100644 --- a/layout/layout.go +++ b/layout/layout.go @@ -236,6 +236,7 @@ func countMaxHeight(rs [][]widgetRule) int { // deepFindProc looks in the UI widget tree for the ProcWidget, // and returns it if found or nil if not. func deepFindProc(gs interface{}) *widgets.ProcWidget { + // FIXME: `procs` layout isn't passing down keystrokes // Recursive function #1. Recursion is OK here because the number // of UI elements, even in a very complex UI, is going to be // relatively small.