Bläddra i källkod

Add CPU usage in status

DricomDragon 4 år sedan
förälder
incheckning
6d14afdb42
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      Install/Templates/i3status/config

+ 7 - 0
Install/Templates/i3status/config

@@ -17,6 +17,7 @@ order += "wireless _first_"
 order += "ethernet _first_"
 order += "path_exists VPN"
 order += "load"
+order += "cpu_usage"
 order += "cpu_temperature 0"
 order += "disk /"
 order += "volume master"
@@ -61,6 +62,12 @@ load {
         format = "%1min"
 }
 
+cpu_usage {
+	format = "%usage"
+	max_threshold = 75
+	degraded_threshold = 25
+}
+
 cpu_temperature 0 {
 	format = "%degrees°C"
 	format_above_threshold = "⚠ %degrees°C"