summaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-02-13 13:24:41 -0600
committerSean E. Russell <ser@ser1.net>2020-02-13 13:24:41 -0600
commit4247e9339e46bb123f714e7774547e6af6a10ec8 (patch)
treeae2d94051ace368f8bca16ce30ff0b35c714550d /config.go
parent44b8ac9c1a80d2a019a694591558ac0c2f8be2d5 (diff)
Reworks the -l argument. Combines the layout args into one (smarter) one, and adds the ability to parse layouts from stdin. Re-implements --minimal as a layout.
Diffstat (limited to 'config.go')
-rw-r--r--config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.go b/config.go
index 84298c5..45b7742 100644
--- a/config.go
+++ b/config.go
@@ -1,6 +1,7 @@
package gotop
import (
+ "io"
"time"
"github.com/cjbassi/gotop/colorschemes"
@@ -17,12 +18,11 @@ type Config struct {
Colorscheme colorschemes.Colorscheme
UpdateInterval time.Duration
- MinimalMode bool
AverageLoad bool
PercpuLoad bool
TempScale widgets.TempScale
Battery bool
Statusbar bool
NetInterface string
- LayoutFile string
+ Layout io.Reader
}