Skip to content

Instantly share code, notes, and snippets.

@keshuaixu
Created October 31, 2017 01:24
Show Gist options
  • Save keshuaixu/64ed0841f33bf037fa5bf23053cd31d5 to your computer and use it in GitHub Desktop.
Save keshuaixu/64ed0841f33bf037fa5bf23053cd31d5 to your computer and use it in GitHub Desktop.
general {
output_format = "i3bar"
colors = true
interval = 2
}
order += "wireless wlp3s0"
order += "ethernet enp0s25"
order += "battery 0"
order += "load"
order += "cpu_temperature 0"
order += "volume master0"
order += "tztime local"
wireless wlp3s0 {
format_up = "W: (%quality at %essid, %bitrate) %ip"
format_down = "W: down"
}
ethernet enp0s25 {
# if you use %speed, i3status requires the cap_net_admin capability
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %consumption %percentage %remaining"
format_down = "No battery"
status_chr = "chr"
status_bat = "bat"
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"
}
tztime berlin {
format = "%Y-%m-%d %H:%M:%S %Z"
timezone = "Europe/Berlin"
}
cpu_temperature 0 {
format = "T: %degrees °C"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
}
disk "/" {
format = "%free"
}
volume master0 {
format = "♪: %volume"
format_muted = "♪: muted (%volume)"
device = "default"
mixer = "Master"
mixer_idx = 0
}
load {
format = "load: %1min, %5min, %15min"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment