summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--cmd/gotop/main.go2
-rw-r--r--colorschemes/nord.go38
3 files changed, 41 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b0e9d7..e10bfdf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Bug fixes & pull requests
- FIX Rowspan in a column loses widgets in later columns
+- Merged pull request for README clean-ups
## [3.1.0] - 2020-02-13
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index 1ef42d4..e9a9a02 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -160,6 +160,8 @@ func handleColorscheme(c string) (colorschemes.Colorscheme, error) {
cs = colorschemes.Vice
case "default-dark":
cs = colorschemes.DefaultDark
+ case "nord":
+ cs = colorschemes.Nord
default:
custom, err := getCustomColorscheme(conf, c)
if err != nil {
diff --git a/colorschemes/nord.go b/colorschemes/nord.go
new file mode 100644
index 0000000..f493e40
--- /dev/null
+++ b/colorschemes/nord.go
@@ -0,0 +1,38 @@
+/*
+ The standard 256 terminal colors are supported.
+
+ -1 = clear
+
+ You can combine a color with 'Bold', 'Underline', or 'Reverse' by using bitwise OR ('|') and the name of the Color.
+ For example, to get Bold red Labels, you would do 'Labels: 2 | Bold'.
+
+ Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function in 'main.go'.
+*/
+
+package colorschemes
+
+var Nord = Colorscheme{
+ Name: "A Nord Approximation",
+ Author: "@jrswab",
+ Fg: 254, // lightest
+ Bg: -1,
+
+ BorderLabel: 254,
+ BorderLine: 96, // Purple
+
+ CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},
+
+ BattLines: []int{4, 3, 2, 1, 5, 6, 7, 8},
+
+ MainMem: 172, // Orange
+ SwapMem: 221, // yellow
+
+ ProcCursor: 31, // blue (nord9)
+
+ Sparkline: 31,
+
+ DiskBar: 254,
+
+ TempLow: 64, // green
+ TempHigh: 167, // red
+}