Add config for sensors command

This commit is contained in:
Miha Frangež 2018-10-09 20:56:13 +02:00
parent 92aac170d0
commit 2b98e0767d
2 changed files with 28 additions and 9 deletions

View File

@ -1,12 +1,28 @@
# Adapetr # Sensor name
regexp=Adapter:\s(.*) regexp=([a-z\-0-9]+)
colours=default, green colours=underline yellow
====== ======
# High temperature # Data names
regexp=.+:\s+(\+[67][0-9][^0-9]) regexp=(.+:)\s+(.+)
colours=default, red colours=unchanged, bright_cyan, default
====== ======
# Very high temperature # Extra info
regexp=.+:\s+(\+[89][0-9][0-9]?) regexp=.+\s+(\(.+\))
colours=default, blink red 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
====== ======

View File

@ -287,3 +287,6 @@ conf.lolcat
(^|[/\w\.]+/)whois\s? (^|[/\w\.]+/)whois\s?
conf.whois conf.whois
# sensors command
(^|[/\w\.]+/)sensors\s?
conf.sensors