138 lines
3.2 KiB
Text
138 lines
3.2 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 = 3
|
|
color_good = "#A3BE8C"
|
|
color_bad = "#BF616A"
|
|
color_degraded = "#B48EAD"
|
|
}
|
|
|
|
#order += "disk /"
|
|
order += "disk /home"
|
|
order += "vpn_status"
|
|
order += "wifi"
|
|
#order += "wireless _first_"
|
|
order += "ethernet _first_"
|
|
order += "battery_level"
|
|
order += "external_script lcd_brightness"
|
|
#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"
|
|
|
|
# System
|
|
#
|
|
uptime {
|
|
format = "up: {days}d {hours}h {minutes}m"
|
|
}
|
|
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"
|
|
}
|
|
tztime local {
|
|
format = " %m/%d %H:%M:%S"
|
|
}
|
|
|
|
# Network
|
|
#
|
|
vpn_status {
|
|
format = " VPN: {name}|"
|
|
pidfile = "/sys/class/net/tun0/dev_id"
|
|
check_pid = "true"
|
|
}
|
|
wifi {
|
|
# format = " {ip} ({ssid} {signal_percent}{icon} {bitrate})"
|
|
format_up = " {ssid} {signal_percent}{icon} {bitrate}"
|
|
format_down = " -"
|
|
}
|
|
wireless _first_ {
|
|
format_up = " %ip (%essid)"
|
|
format_down = " -"
|
|
}
|
|
ethernet _first_ {
|
|
# format_up = " %ip (%speed)"
|
|
format_up = " %speed"
|
|
format_down = " -"
|
|
}
|
|
run_watch DHCP {
|
|
pidfile = "/var/run/dhclient*.pid"
|
|
}
|
|
|
|
# Filesystem
|
|
#
|
|
disk "/" {
|
|
format = " / %percentage_free"
|
|
on_click 1 = "exec --no-startup-id caja /"
|
|
}
|
|
disk "/home" {
|
|
format = " /home %percentage_free"
|
|
on_click 1 = "exec --no-startup-id caja ~/"
|
|
}
|
|
|
|
# Display
|
|
#
|
|
external_script lcd_brightness {
|
|
cache_timeout = 10
|
|
format = " {output}%"
|
|
script_path = '~/Bin/brightness.sh read 2>/dev/null'
|
|
}
|
|
|
|
# Music
|
|
#
|
|
volume master {
|
|
format = "♪ %volume"
|
|
format_muted = "♪ muted"
|
|
device = "default"
|
|
mixer = "Master"
|
|
mixer_idx = 0
|
|
}
|
|
static_string prev {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
|
|
}
|
|
static_string next {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
|
|
}
|
|
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"
|
|
}
|
|
|
|
# Tools
|
|
#
|
|
static_string screenshot {
|
|
format = ""
|
|
on_click 1 = "exec --no-startup-id ~/Bin/screenshooter.sh"
|
|
}
|
|
|