Rewrote py3status config

This commit is contained in:
dbroqua 2020-06-19 08:04:10 +02:00
parent 5564d44953
commit 8a53dda5a1

View file

@ -14,22 +14,22 @@
#} #}
general { general {
colors = true colors = true
interval = 3 interval = 3
color_good = "#A3BE8C" color_good = "#A3BE8C"
color_bad = "#BF616A" color_bad = "#BF616A"
color_degraded = "#B48EAD" color_degraded = "#B48EAD"
} }
order += "disk /" order += "disk /"
order += "disk /home" order += "disk /home"
order += "vpn_status" order += "vpn_status"
order += "wireless _first_" order += "wifi"
#order += "wireless _first_"
order += "ethernet _first_" order += "ethernet _first_"
#order += "path_exists VPN"
order += "battery_level" order += "battery_level"
order += "external_script lcd_brightness" order += "external_script lcd_brightness"
#order += "sysdata base" order += "sysdata base"
#order += "sysdata temp" #order += "sysdata temp"
#order += "nvidia_temp" #order += "nvidia_temp"
#order += "uptime" #order += "uptime"
@ -40,95 +40,96 @@ order += "static_string next"
order += "static_string screenshot" order += "static_string screenshot"
order += "tztime local" order += "tztime local"
# System
#
uptime { uptime {
format = "up: {days}d {hours}h {minutes}m" 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"
} }
static_string prev { # Network
format = "" #
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" vpn_status {
format = " VPN: {name}|"
pidfile = "/sys/class/net/tun0/dev_id"
check_pid = "true"
} }
wifi {
format = " {ip} {icon} ({ssid} - {bitrate})"
}
wireless _first_ {
format_up = " %ip (%essid)"
format_down = " -"
}
ethernet _first_ {
format_up = " %ip (%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 { external_script lcd_brightness {
cache_timeout = 10 cache_timeout = 10
format = " {output}%" format = " {output}%"
script_path = '~/Bin/brightness.sh read 2>/dev/null' script_path = '~/Bin/brightness.sh read 2>/dev/null'
} }
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"
# 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 { static_string next {
format = "" format = ""
on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" 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 { static_string screenshot {
format = "" format = ""
on_click 1 = "exec --no-startup-id ~/Bin/screenshooter.sh" 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
}