From 8a53dda5a17a93f5cef2d6aed9330e42a9488fea Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 19 Jun 2020 08:04:10 +0200 Subject: [PATCH] Rewrote py3status config --- config/i3status/config | 175 +++++++++++++++++++++-------------------- 1 file changed, 88 insertions(+), 87 deletions(-) diff --git a/config/i3status/config b/config/i3status/config index 514e70a..d053f1e 100644 --- a/config/i3status/config +++ b/config/i3status/config @@ -14,22 +14,22 @@ #} general { - colors = true - interval = 3 - color_good = "#A3BE8C" - color_bad = "#BF616A" - color_degraded = "#B48EAD" + colors = true + interval = 3 + color_good = "#A3BE8C" + color_bad = "#BF616A" + color_degraded = "#B48EAD" } 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,95 +40,96 @@ order += "static_string next" order += "static_string screenshot" order += "tztime local" +# System +# 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 { - format = "" - on_click 1 = "exec --no-startup-id qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" +# 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" +} + +# 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' + 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" - + +# 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" + 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" + 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 -}