Skip to content

Commit bcab124

Browse files
committed
provide example of custom sensors config
Signed-off-by: Tomas Tomecek <[email protected]>
1 parent aca35ec commit bcab124

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ Your configuration may look like this:
163163
"address_color_bg": "default"
164164
}
165165
}
166+
},
167+
"sensors": {
168+
"template": "{{range $i, $device := .Devices}}{{if eq $device.Name \"coretemp\"}}{{range $j, $e := .Stats}}{{if gt .CurrentTemp 50.0}}{{tmux_display \"default\" \"colour1\" $e.CurrentTemp}}{{else if gt $e.CurrentTemp 60.0}}{{tmux_display \"default\" \"colour14\" $e.CurrentTemp}}{{end}} {{end}}{{end}}{{end}}"
166169
}
167170
}
168171
```

0 commit comments

Comments
 (0)