From 2b98e0767de6583680ac9e354137a78389771e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Frange=C5=BE?= Date: Tue, 9 Oct 2018 20:56:13 +0200 Subject: [PATCH] Add config for sensors command --- colourfiles/conf.sensors | 34 +++++++++++++++++++++++++--------- grc.conf | 3 +++ 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/colourfiles/conf.sensors b/colourfiles/conf.sensors index ea10163..b74ef4a 100644 --- a/colourfiles/conf.sensors +++ b/colourfiles/conf.sensors @@ -1,12 +1,28 @@ -# Adapetr -regexp=Adapter:\s(.*) -colours=default, green +# Sensor name +regexp=([a-z\-0-9]+) +colours=underline yellow ====== -# High temperature -regexp=.+:\s+(\+[67][0-9][^0-9]) -colours=default, red +# Data names +regexp=(.+:)\s+(.+) +colours=unchanged, bright_cyan, default ====== -# Very high temperature -regexp=.+:\s+(\+[89][0-9][0-9]?) -colours=default, blink red +# Extra info +regexp=.+\s+(\(.+\)) +colours=unchanged, bright_black +====== +# Adapter name +regexp=Adapter:(\s.*) +colours=unchanged, yellow +====== +# Low temperature (below 60) +regexp=.+:\s+(\+[2345][0-9]\.[0-9]°C) +colours=unchanged, green +====== +# High temperature (above 60) +regexp=.+:\s+(\+[67][0-9]\.[0-9]°C) +colours=unchanged, bright_yellow +====== +# Very high temperature (above 80) +regexp=.+:\s+(\+[89][0-9]\.[0-9]°C) +colours=unchanged, bright_red ====== diff --git a/grc.conf b/grc.conf index a4d68a8..a342023 100644 --- a/grc.conf +++ b/grc.conf @@ -287,3 +287,6 @@ conf.lolcat (^|[/\w\.]+/)whois\s? conf.whois +# sensors command +(^|[/\w\.]+/)sensors\s? +conf.sensors