Rewrote py3status config

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

View file

@ -24,12 +24,12 @@ general {
order += "disk /"
order += "disk /home"
order += "vpn_status"
order += "wireless _first_"
order += "wifi"
#order += "wireless _first_"
order += "ethernet _first_"
#order += "path_exists VPN"
order += "battery_level"
order += "external_script lcd_brightness"
#order += "sysdata base"
order += "sysdata base"
#order += "sysdata temp"
#order += "nvidia_temp"
#order += "uptime"
@ -40,91 +40,70 @@ order += "static_string next"
order += "static_string screenshot"
order += "tztime local"
# System
#
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 lcd_brightness {
cache_timeout = 10
format = " {output}%"
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"
}
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"
}
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} {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"
}
path_exists VPN {
path = "/proc/sys/net/ipv4/conf/tun0"
}
tztime local {
format = "%m/%d %H:%M:%S"
}
# 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 sunflower"
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"
@ -132,3 +111,25 @@ volume master {
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"
}