From 5ee4b4a978f3b27513b680fe3297cb7bea7bcb1e Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Wed, 26 Dec 2018 22:06:55 -0600 Subject: Adds battery support Cleans up mod file; adds flag for battery. Adds documentation; fixes missing color sets for battery. --- colorschemes/default.go | 2 ++ colorschemes/default.json | 2 ++ colorschemes/default_dark.go | 2 ++ colorschemes/monokai.go | 2 ++ colorschemes/solarized.go | 2 ++ colorschemes/template.go | 2 ++ 6 files changed, 12 insertions(+) (limited to 'colorschemes') diff --git a/colorschemes/default.go b/colorschemes/default.go index 48db2d3..de65c22 100644 --- a/colorschemes/default.go +++ b/colorschemes/default.go @@ -9,6 +9,8 @@ var Default = Colorscheme{ CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8}, + BattLines: []int{4, 3, 2, 1, 5, 6, 7, 8}, + MainMem: 5, SwapMem: 11, diff --git a/colorschemes/default.json b/colorschemes/default.json index 5d26a8b..99abfaa 100644 --- a/colorschemes/default.json +++ b/colorschemes/default.json @@ -9,6 +9,8 @@ "CPULines": [4, 3, 2, 1, 5, 6, 7, 8], + "BattLines": [4, 3, 2, 1, 5, 6, 7, 8], + "MainMem": 5, "SwapMem": 11, diff --git a/colorschemes/default_dark.go b/colorschemes/default_dark.go index 15f7137..6070985 100644 --- a/colorschemes/default_dark.go +++ b/colorschemes/default_dark.go @@ -9,6 +9,8 @@ var DefaultDark = Colorscheme{ CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8}, + BattLines: []int{4, 3, 2, 1, 5, 6, 7, 8}, + MainMem: 5, SwapMem: 3, diff --git a/colorschemes/monokai.go b/colorschemes/monokai.go index b3dbc23..445f054 100644 --- a/colorschemes/monokai.go +++ b/colorschemes/monokai.go @@ -9,6 +9,8 @@ var Monokai = Colorscheme{ CPULines: []int{81, 70, 208, 197, 249, 141, 221, 186}, + BattLines: []int{81, 70, 208, 197, 249, 141, 221, 186}, + MainMem: 208, SwapMem: 186, diff --git a/colorschemes/solarized.go b/colorschemes/solarized.go index 2ead4df..3ce9997 100644 --- a/colorschemes/solarized.go +++ b/colorschemes/solarized.go @@ -9,6 +9,8 @@ var Solarized = Colorscheme{ CPULines: []int{61, 33, 37, 64, 125, 160, 166, 136}, + BattLines: []int{61, 33, 37, 64, 125, 160, 166, 136}, + MainMem: 125, SwapMem: 166, diff --git a/colorschemes/template.go b/colorschemes/template.go index d303e4b..f410e61 100644 --- a/colorschemes/template.go +++ b/colorschemes/template.go @@ -30,6 +30,8 @@ type Colorscheme struct { // should add at least 8 here CPULines []int + BattLines []int + MainMem int SwapMem int -- cgit v1.2.3