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
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
======

View File

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