From ca6a32868236a52236e0ed530b7ca256e1b50e7a Mon Sep 17 00:00:00 2001 From: sqshq Date: Sat, 13 Apr 2019 12:39:09 -0400 Subject: [PATCH] menu cross-platform rendering: remove dot in the middle of arrows --- component/menu.go | 2 +- config.yml | 122 +++++++++++++++++++++++----------------------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/component/menu.go b/component/menu.go index 951a262..4db4ff6 100644 --- a/component/menu.go +++ b/component/menu.go @@ -182,7 +182,7 @@ func (m *Menu) printAllDirectionsArrowSign(buffer *ui.Buffer, y int) { arrows := []string{ " ↑ ", - "←· →", + "← →", " ↓ ", } diff --git a/config.yml b/config.yml index c2e9fd5..82a00ef 100644 --- a/config.yml +++ b/config.yml @@ -4,21 +4,21 @@ runcharts: - title: SEARCH ENGINE RESPONSE TIME (sec) position: [[0, 0], [52, 16]] triggers: - - title: Latency threshold exceeded - condition: echo "$prev < 0.8 && $cur > 0.8" |bc -l - actions: - terminal-bell: true - sound: true - visual: true - script: 'say alert: ${label} latency exceeded ${cur} second' + - title: Latency threshold exceeded + condition: echo "$prev < 0.8 && $cur > 0.8" |bc -l + actions: + terminal-bell: true + sound: true + visual: true + script: 'say alert: ${label} latency exceeded ${cur} second' scale: 3 items: - - label: GOOGLE - sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com - - label: YAHOO - sample: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com - - label: BING - sample: curl -o /dev/null -s -w '%{time_total}' https://www.bing.com + - label: GOOGLE + sample: curl -o /dev/null -s -w '%{time_total}' https://www.google.com + - label: YAHOO + sample: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com + - label: BING + sample: curl -o /dev/null -s -w '%{time_total}' https://www.bing.com - title: MONGO COLLECTIONS COUNT position: [[53, 0], [27, 8]] legend: @@ -26,32 +26,32 @@ runcharts: details: false scale: 0 items: - - label: ACTIVE - init: $mongoconnection - sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() - - label: INACTIVE - init: $mongoconnection - sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() + - label: ACTIVE + init: $mongoconnection + sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() + - label: INACTIVE + init: $mongoconnection + sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() barcharts: - title: EVENTS BY STATUS position: [[0, 17], [28, 12]] rate-ms: 300 scale: 0 items: - - label: NEW - init: $mongoconnection - sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() - - label: TRIGGERED - init: $mongoconnection - sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() - - label: IN_PROCESS - sample: echo 0 - - label: FAILED - init: $mongoconnection - sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() - - label: FINISHED - init: $mongoconnection - sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() + - label: NEW + init: $mongoconnection + sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() + - label: TRIGGERED + init: $mongoconnection + sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() + - label: IN_PROCESS + sample: echo 0 + - label: FAILED + init: $mongoconnection + sample: db.getCollection('posts').find({status:'ACTIVE'}).itcount() + - label: FINISHED + init: $mongoconnection + sample: db.getCollection('posts').find({status:'INACTIVE'}).itcount() gauges: - title: YEAR PROGRESS position: [[53, 8], [27, 2]] @@ -80,11 +80,11 @@ gauges: - title: MINUTE PROGRESS position: [[53, 14], [27, 2]] triggers: - - title: CLOCK BELL EVERY MINUTE - condition: '[ $label == "cur" ] && [ $cur -eq 0 ] && echo 1 || echo 0' - actions: - sound: true - script: say -v samantha `date +%I:%M%p` + - title: CLOCK BELL EVERY MINUTE + condition: '[ $label == "cur" ] && [ $cur -eq 0 ] && echo 1 || echo 0' + actions: + sound: true + script: say -v samantha `date +%I:%M%p` cur: sample: date +%S max: @@ -92,30 +92,30 @@ gauges: min: sample: echo 0 sparklines: - - title: CPU usage - position: [[28, 22], [24, 7]] - scale: 0 - sample: ps -A -o %cpu | awk '{s+=$1} END {print s}' - - title: Memory pages free - position: [[28, 17], [24, 5]] - scale: 0 - sample: memory_pressure | grep 'Pages free' | awk '{print $3}' +- title: CPU usage + position: [[28, 22], [24, 7]] + scale: 0 + sample: ps -A -o %cpu | awk '{s+=$1} END {print s}' +- title: Memory pages free + position: [[28, 17], [24, 5]] + scale: 0 + sample: memory_pressure | grep 'Pages free' | awk '{print $3}' textboxes: - - title: Local weather - position: [[0, 30], [13, 7]] - rate-ms: 10000 - sample: curl wttr.in?0ATQF - border: false - - title: New York weather - position: [[8, 30], [13, 7]] - rate-ms: 10000 - sample: curl wttr.in/newyork?0ATQF - border: false - - title: San Francisco weather - position: [[17, 30], [13, 7]] - rate-ms: 10000 - sample: curl wttr.in/sanfrancisco?0ATQF - border: false +- title: Local weather + position: [[0, 30], [13, 7]] + rate-ms: 10000 + sample: curl wttr.in?0ATQF + border: false +- title: New York weather + position: [[8, 30], [13, 7]] + rate-ms: 10000 + sample: curl wttr.in/newyork?0ATQF + border: false +- title: San Francisco weather + position: [[17, 30], [13, 7]] + rate-ms: 10000 + sample: curl wttr.in/sanfrancisco?0ATQF + border: false asciiboxes: - title: LOCAL TIME position: [[53, 17], [27, 5]]