Update i3status
This commit is contained in:
parent
3e317311f6
commit
ff9754d770
1 changed files with 18 additions and 10 deletions
|
@ -11,27 +11,20 @@ wireless ${iface} {
|
||||||
format_down = "${iface} down"
|
format_down = "${iface} down"
|
||||||
}
|
}
|
||||||
order += "wireless ${iface}"
|
order += "wireless ${iface}"
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
% for iface in host.get('ethernet', []):
|
% for iface in host.get('ethernet', []):
|
||||||
ethernet ${iface} {
|
ethernet ${iface} {
|
||||||
format_up = "${iface} %ip"
|
format_up = "${iface} %ip"
|
||||||
format_down = "${iface} down"
|
format_down = "${iface} down"
|
||||||
}
|
}
|
||||||
order += "ethernet ${iface}"
|
order += "ethernet ${iface}"
|
||||||
|
|
||||||
% endfor
|
% endfor
|
||||||
% for disk in host.get('disks', ['/']):
|
|
||||||
disk "${disk}" {
|
|
||||||
format = "${disk} %avail"
|
|
||||||
}
|
|
||||||
order += "disk ${disk}"
|
|
||||||
|
|
||||||
% endfor
|
|
||||||
volume default {
|
volume default {
|
||||||
format = "vol %volume"
|
format = "vol %volume"
|
||||||
format_muted = "mute %volume"
|
format_muted = "mute %volume"
|
||||||
device = "pulse"
|
device = "default"
|
||||||
}
|
}
|
||||||
order += "volume default"
|
order += "volume default"
|
||||||
|
|
||||||
|
@ -41,15 +34,30 @@ battery all {
|
||||||
status_chr = "chr"
|
status_chr = "chr"
|
||||||
status_bat = "bat"
|
status_bat = "bat"
|
||||||
status_unk = "unk"
|
status_unk = "unk"
|
||||||
status_full = "bat"
|
status_full = "full"
|
||||||
}
|
}
|
||||||
order += "battery all"
|
order += "battery all"
|
||||||
|
|
||||||
|
% for disk in host.get('disks', ['/']):
|
||||||
|
disk "${disk}" {
|
||||||
|
format = "${disk} %avail"
|
||||||
|
}
|
||||||
|
order += "disk ${disk}"
|
||||||
|
% endfor
|
||||||
|
|
||||||
cpu_usage {
|
cpu_usage {
|
||||||
format = "cpu %usage"
|
format = "cpu %usage"
|
||||||
|
degraded_threshold = "50"
|
||||||
|
max_threshold = "90"
|
||||||
}
|
}
|
||||||
order += "cpu_usage"
|
order += "cpu_usage"
|
||||||
|
|
||||||
|
memory {
|
||||||
|
format = "mem %percentage_used"
|
||||||
|
threshold_degraded = "10%"
|
||||||
|
threshold_critical = "5%"
|
||||||
|
}
|
||||||
|
|
||||||
tztime utc {
|
tztime utc {
|
||||||
format = "%Y-%m-%d %H:%M:%S"
|
format = "%Y-%m-%d %H:%M:%S"
|
||||||
timezone = UTC
|
timezone = UTC
|
||||||
|
|
Loading…
Add table
Reference in a new issue