Skip to content

Instantly share code, notes, and snippets.

@manfromth3m0oN
Created January 25, 2020 18:09
Show Gist options
  • Save manfromth3m0oN/29ac42eec380e8f06b4712075b5c9482 to your computer and use it in GitHub Desktop.
Save manfromth3m0oN/29ac42eec380e8f06b4712075b5c9482 to your computer and use it in GitHub Desktop.
general {
output_format = "i3bar"
colors = true
color_good = "#50FA7B"
color_degraded = "#F1FA8C"
color_bad = "#FF5555"
}
order += "disk /"
order += "wireless wlo1"
order += "ethernet eth0"
order += "battery 0"
order += "memory"
order += "cpu_usage"
# order += "tztime local"
wireless wlo1 {
format_up = ":%quality %bitrate %ip"
format_down = "W: down"
}
ethernet eno1 {
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}
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 local {
format = "%Y-%m-%d %H:%M:%S"
hide_if_equals_localtime = true
}
tztime berlin {
format = "%Y-%m-%d %H:%M:%S %Z"
timezone = "Europe/Berlin"
}
load {
format = ": %1min"
}
cpu_temperature 0 {
format = "T: %degrees °C"
path = "/sys/devices/platform/coretemp.0/temp1_input"
}
memory {
format = " %used"
threshold_degraded = "10%"
format_degraded = "MEMORY: %free"
}
disk "/" {
format = " %free"
}
read_file uptime {
path = "/proc/uptime"
}
cpu_usage {
format = ": %usage "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment