139 lines
2.9 KiB
Text
139 lines
2.9 KiB
Text
general {
|
|
// output_format = "i3bar"
|
|
colors = true
|
|
// color_good = "#50FA7B"
|
|
// color_degraded = "#F1FA8C"
|
|
// color_bad = "#FF5555"
|
|
color_good = "#a3be8c"
|
|
color_degraded = "#ebcb8b"
|
|
color_bad = "#bf616a"
|
|
separator = ""
|
|
output_format = "i3bar"
|
|
interval = 5
|
|
separator = ""
|
|
}
|
|
|
|
// order += "ipv6"
|
|
order += "volume master"
|
|
order += "read_file spotify"
|
|
order += "disk /"
|
|
order += "disk /nix"
|
|
order += "disk /home"
|
|
// order += "run_watch DHCP"
|
|
// order += "run_watch VPNC"
|
|
// order += "path_exists VPN"
|
|
order += "wireless _first_"
|
|
order += "ethernet _first_"
|
|
order += "battery 0"
|
|
order += "cpu_temperature 0"
|
|
order += "tztime date"
|
|
order += "tztime Montreal"
|
|
order += "tztime Brussels"
|
|
|
|
wireless _first_ {
|
|
format_up = " (%quality at %essid, %bitrate) %ip"
|
|
format_down = " "
|
|
}
|
|
|
|
ethernet _first_ {
|
|
format_up = " %ip"
|
|
format_down = " "
|
|
}
|
|
|
|
battery 0 {
|
|
format = "%status %percentage %remaining"
|
|
format_down = ""
|
|
last_full_capacity = true
|
|
integer_battery_capacity = true
|
|
low_threshold = 11
|
|
threshold_type = percentage
|
|
hide_seconds = true
|
|
status_chr = "⚡ "
|
|
status_bat = "🪫 "
|
|
status_unk = "🔌 "
|
|
status_full = "🔋 "
|
|
path = "/sys/class/power_supply/BAT%d/uevent"
|
|
}
|
|
|
|
run_watch DHCP {
|
|
pidfile = "/var/run/dhclient*.pid"
|
|
}
|
|
|
|
run_watch VPNC {
|
|
# file containing the PID of a vpnc process
|
|
pidfile = "/var/run/vpnc/pid"
|
|
}
|
|
|
|
path_exists VPN {
|
|
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
|
|
path = "/proc/sys/net/ipv4/conf/tun0"
|
|
}
|
|
|
|
tztime date {
|
|
format = "📅 %V %a %Y-%m-%d"
|
|
}
|
|
|
|
tztime Brussels {
|
|
format = "🇧🇪 %H:%M:%S %Z"
|
|
timezone = "Europe/Brussels"
|
|
}
|
|
|
|
tztime Montreal {
|
|
format = "🏴 %H:%M:%S %Z"
|
|
timezone = "America/Montreal"
|
|
hide_if_equals_localtime = true
|
|
}
|
|
|
|
load {
|
|
format = " %5min"
|
|
}
|
|
|
|
cpu_temperature 0 {
|
|
format = "🌡️ %degrees"
|
|
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input"
|
|
}
|
|
|
|
memory {
|
|
format = " %used"
|
|
threshold_degraded = "10%"
|
|
format_degraded = "MEMORY: %free"
|
|
}
|
|
|
|
disk "/" {
|
|
format = " / %free"
|
|
prefix_type = custom
|
|
low_threshold = 20
|
|
threshold_type = percentage_avail
|
|
}
|
|
|
|
disk "/nix" {
|
|
format = "💻 /nix %free"
|
|
prefix_type = custom
|
|
low_threshold = 15
|
|
threshold_type = percentage_avail
|
|
}
|
|
|
|
disk "/home" {
|
|
format = "💾 /home %free"
|
|
prefix_type = custom
|
|
low_threshold = 10
|
|
threshold_type = percentage_avail
|
|
}
|
|
|
|
read_file uptime {
|
|
path = "/proc/uptime"
|
|
}
|
|
|
|
volume master {
|
|
format = "%volume "
|
|
format_muted = " "
|
|
// device = "pulse:1"pavuc
|
|
device = "default"
|
|
mixer = "Master"
|
|
mixer_idx = 0
|
|
}
|
|
|
|
read_file spotify {
|
|
format = "🔊%content"
|
|
path = "./spotify.log"
|
|
}
|