Skip to content

Instantly share code, notes, and snippets.

@jserpapinto
Created April 14, 2020 09:03
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 jserpapinto/5b7d9488043fb27f4c26bcc179cc914c to your computer and use it in GitHub Desktop.
Save jserpapinto/5b7d9488043fb27f4c26bcc179cc914c to your computer and use it in GitHub Desktop.
Manjaro - i3status + py3status config.
# Use this in path /etc/i3status.conf or ~/.i3/i3status.conf or ~/.config/i3/i3status.conf
# This are default manjaro i3status config with a little extra py3status config.
# This must be called by py3status in ~/.i3/config such as:
# status_command py3status -c /etc/i3status.conf # -c can be omitted.
#
# Added by jserpa:
# * `external_script vpn_info`
# --------------------- " --------------------- #
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
color_good = "#2AA198"
color_bad = "#586E75"
color_degraded = "#DC322F"
}
# order += "ipv6"
order += "cpu_usage"
order += "disk /"
# order += "disk /home"
order += "path_exists VPN"
order += "external_script vpn_info"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery all"
# order += "load"
order += "memory"
order += "tztime local"
cpu_usage {
format = " cpu %usage "
}
load {
format = " load %1min "
# max_threshold = 0.3
}
disk "/" {
# format = " hdd %avail "
format = " ⛁ %avail "
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = " lan: %ip %speed "
format_down = " no lan "
}
external_script vpn_info {
format = "{output}"
script_path = "protonvpn s | grep Country | awk '{ print $2 }'"
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
battery all {
# format = "%status %percentage %remaining %emptytime"
format = " %status %percentage"
format_down = "No battery"
last_full_capacity = true
integer_battery_capacity = true
# status_chr = ""
status_chr = "⚡"
# status_bat = "bat"
# status_bat = "☉"
status_bat = ""
# status_unk = "?"
status_unk = ""
# status_full = ""
status_full = "☻"
low_threshold = 15
threshold_type = time
}
memory {
format = "%used | %available"
threshold_degraded = "1G"
format_degraded = "MEMORY < %available"
}
tztime local {
# format = "%Y-%m-%d %H:%M:%S"
format = " %d.%m. %H:%M "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment