Skip to content

Instantly share code, notes, and snippets.

@andnils
Last active January 3, 2019 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andnils/1445c2d6f38b407a0c125d9c3364aa70 to your computer and use it in GitHub Desktop.
Save andnils/1445c2d6f38b407a0c125d9c3364aa70 to your computer and use it in GitHub Desktop.
i3status
general {
colors = true
interval = 5
color_good = "#48b9c7"
color_bad = "#f15d22"
color_degraded = "#faa41a"
output_format = "i3bar"
}
run_watch nginx {
pidfile = "/var/run/nginx.pid"
format = "nginx: "
format_down = "nginx: "
}
ethernet eth0 {
format_up = " %ip"
format_down = " -"
}
wireless wlp2s0 {
format_up = " %ip"
format_down = " -"
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
format = "VPN: "
format_down = "VPN: "
}
battery 0 {
# format = "%status %percentage %remaining %emptytime"
format = "%status %percentage"
format_down = ""
status_chr = "⚡"
status_bat = ""
status_unk = ""
status_full = ""
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
min_width = 75
align = "center"
integer_battery_capacity = true
}
volume master {
format = " %volume"
format_muted = " muted (%volume)"
device = "default"
mixer = "Master"
min_width = 75
align = "center"
}
tztime local {
format = " %Y-%m-%d %H:%M:%S"
}
# order += "run_watch nginx"
order += "ethernet eth0"
order += "wireless wlp2s0"
order += "path_exists VPN"
order += "battery 0"
order += "volume master"
order += "tztime local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment