dotfiles/templates/.config/i3status/config.j2

80 lines
1.4 KiB
Text
Raw Normal View History

2019-01-29 19:46:02 -06:00
general {
colors = true
interval = 5
}
2025-04-04 20:30:54 -05:00
{{ get_base16('i3status') }}
2020-04-09 19:59:18 -05:00
2025-04-04 20:30:54 -05:00
{% for iface in host.wireless %}
wireless {{ iface }} {
format_up = "{{ iface }} %ip %essid %quality"
format_down = "{{ iface }} down"
2019-01-29 19:46:02 -06:00
}
2025-04-04 20:30:54 -05:00
order += "wireless {{ iface }}"
{% endfor %}
2021-12-25 22:19:46 -06:00
2025-04-04 20:30:54 -05:00
{% for iface in host.ethernet %}
ethernet {{ iface }} {
format_up = "{{ iface }} %ip"
format_down = "{{ iface }} down"
2019-01-29 19:46:02 -06:00
}
2025-04-04 20:30:54 -05:00
order += "ethernet {{ iface }}"
{% endfor %}
2019-01-29 19:46:02 -06:00
volume default {
format = "vol %volume"
format_muted = "mute %volume"
2021-12-25 22:19:46 -06:00
device = "default"
2019-01-29 19:46:02 -06:00
}
order += "volume default"
battery all {
format = "%status %percentage %remaining"
format_down = ""
status_chr = "chr"
status_bat = "bat"
status_unk = "unk"
2021-12-25 22:19:46 -06:00
status_full = "full"
2019-01-29 19:46:02 -06:00
}
order += "battery all"
2025-04-04 20:30:54 -05:00
{% for disk in host.disks %}
disk "{{ disk }}" {
format = "{{ disk }} %avail"
2021-12-25 22:19:46 -06:00
}
2025-04-04 20:30:54 -05:00
order += "disk {{ disk }}"
{% endfor %}
2021-12-25 22:19:46 -06:00
2019-01-29 19:46:02 -06:00
cpu_usage {
format = "cpu %usage"
2021-12-25 22:19:46 -06:00
degraded_threshold = "50"
max_threshold = "90"
2019-01-29 19:46:02 -06:00
}
order += "cpu_usage"
2021-12-25 22:19:46 -06:00
memory {
format = "mem %percentage_used"
threshold_degraded = "10%"
threshold_critical = "5%"
}
2021-12-25 22:29:10 -06:00
order += "memory"
2021-12-25 22:19:46 -06:00
2025-04-04 20:30:54 -05:00
{% if host.temperature_path %}
2022-10-01 10:57:43 -05:00
cpu_temperature 0 {
format = "temp %degrees°C"
2025-04-04 20:30:54 -05:00
path = "{{ host.temperature_path }}"
2022-10-01 10:57:43 -05:00
}
order += "cpu_temperature 0"
2025-04-04 20:30:54 -05:00
{% endif %}
2022-10-01 10:57:43 -05:00
2019-01-29 19:46:02 -06:00
tztime utc {
format = "%Y-%m-%d %H:%M:%S"
timezone = UTC
}
order += "tztime utc"
tztime local {
format = "%H:%M"
}
order += "tztime local"