浏览代码

Show temperature of processor

Show temperature of thermal zone of type `x86_pkg_temp` in status bar.
DricomDragon 4 年之前
父节点
当前提交
def09481ca
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Install/Templates/i3status/config

+ 6 - 0
Install/Templates/i3status/config

@@ -17,6 +17,7 @@ order += "wireless _first_"
 order += "ethernet _first_"
 order += "path_exists VPN"
 order += "load"
+order += "cpu_temperature 0"
 order += "disk /"
 order += "volume master"
 order += "battery 0"
@@ -60,6 +61,11 @@ load {
         format = "%1min"
 }
 
+cpu_temperature 0 {
+	format = "%degrees°C"
+	path = "/sys/class/thermal/thermal_zone5/temp"
+}
+
 disk "/" {
         format = "%avail"
         low_threshold = 100