128 lines
2.9 KiB
Text
128 lines
2.9 KiB
Text
# 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 {
|
|
# output_format = "i3bar"
|
|
# colors = true
|
|
# interval = 5
|
|
# separator = "❱"
|
|
#}
|
|
|
|
general {
|
|
colors = true
|
|
interval = 5
|
|
color_good = "#66BB6A"
|
|
color_bad = "#DE935F"
|
|
color_degraded = "#A54242"
|
|
}
|
|
|
|
order += "disk /"
|
|
order += "disk /home"
|
|
order += "vpn_status"
|
|
order += "wireless _first_"
|
|
order += "ethernet _first_"
|
|
#order += "path_exists VPN"
|
|
order += "battery_level"
|
|
#order += "sysdata base"
|
|
#order += "sysdata temp"
|
|
#order += "nvidia_temp"
|
|
#order += "uptime"
|
|
order += "volume master"
|
|
order += "static_string prev"
|
|
order += "external_script spotify"
|
|
order += "static_string next"
|
|
order += "static_string screenshot"
|
|
order += "tztime local"
|
|
|
|
uptime {
|
|
format = "up: {days}d {hours}h {minutes}m"
|
|
}
|
|
|
|
static_string prev {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
|
|
}
|
|
external_script spotify {
|
|
cache_timeout = 10
|
|
format = "{output}"
|
|
script_path = 'pidof spotify >/dev/null && echo " "$(qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep "^xesam:\(title\|artist\):" | grep -o " .*" | column | sed "s/\t\+/:/g") || (echo "")'
|
|
on_click 1 = "exec --no-startup-id pidof spotify && qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
|
|
|
|
}
|
|
static_string next {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
|
|
}
|
|
|
|
static_string screenshot {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id ~/Bin/screenshooter.sh"
|
|
}
|
|
|
|
vpn_status {
|
|
format = " {name}|"
|
|
color_bad = "#DE935F"
|
|
color_good = "#66BB6A"
|
|
pidfile = "/sys/class/net/tun0/dev_id"
|
|
check_pid = "true"
|
|
}
|
|
|
|
battery_level {
|
|
battery_id = all
|
|
charging_character=""
|
|
blocks=""
|
|
format = "{icon} {percent}%"
|
|
}
|
|
|
|
sysdata base{
|
|
format = " CPU: {cpu_usage}%, MEM: {mem_used_percent}%"
|
|
}
|
|
|
|
sysdata temp{
|
|
format = "CPU: {cpu_temp}°C"
|
|
}
|
|
|
|
wireless _first_ {
|
|
format_up = " %ip (%essid)"
|
|
format_down = " -"
|
|
}
|
|
|
|
ethernet _first_ {
|
|
format_up = " %ip (%speed)"
|
|
format_down = " -"
|
|
}
|
|
|
|
run_watch DHCP {
|
|
pidfile = "/var/run/dhclient*.pid"
|
|
}
|
|
|
|
path_exists VPN {
|
|
path = "/proc/sys/net/ipv4/conf/tun0"
|
|
}
|
|
|
|
tztime local {
|
|
format = "%m/%d %H:%M:%S"
|
|
}
|
|
|
|
disk "/" {
|
|
format = " / %percentage_free"
|
|
}
|
|
|
|
disk "/home" {
|
|
format = " /home %percentage_free"
|
|
on_click 1 = "exec --no-startup-id sunflower"
|
|
|
|
}
|
|
|
|
volume master {
|
|
format = "♪ %volume"
|
|
format_muted = "♪ muted"
|
|
device = "default"
|
|
mixer = "Master"
|
|
mixer_idx = 0
|
|
}
|