From a1efaaf31c530a2c07228264ee86f1d63dd32657 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 9 Jun 2017 10:41:13 -0500 Subject: [PATCH] Moved thurstybook to py3status --- .config/i3/status/thurstybook.config | 113 +++++++++++++++------------ .config/i3/thurstybook.config | 2 +- 2 files changed, 65 insertions(+), 50 deletions(-) diff --git a/.config/i3/status/thurstybook.config b/.config/i3/status/thurstybook.config index cc9b553..888ccd0 100644 --- a/.config/i3/status/thurstybook.config +++ b/.config/i3/status/thurstybook.config @@ -1,32 +1,30 @@ -# 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! +# py3status configuration file. +# see "https://py3status.readthedocs.io/en/latest/modules.html" for documentation. general { colors = true interval = 5 + color = '#FFFFFF' + color_good = '#0088CC' + color_bad = '#DD0000' } +order += "arch_updates" +order += "spotify" order += "ipv6" -order += "volume master" +order += "volume_status" order += "disk /" -order += "disk /home" -order += "run_watch VPN" -order += "wireless _first_" +#order += "run_watch DHCP" +order += "run_watch SPVPN" +order += "wifi" order += "ethernet _first_" -order += "run_watch DHCP" -order += "battery 1" -order += "load" -order += "cpu_temperature 0" +order += "battery_level" +order += "keyboard_locks" +order += "sysdata" order += "tztime local" -wireless _first_ { - format_up = "W: (%essid: %quality) %ip" - format_down = "W: down" +wifi { + format = "W: {icon} {signal_dbm} {ssid} {ip}|W: down" } ethernet _first_ { @@ -35,48 +33,65 @@ ethernet _first_ { format_down = "E: down" } -battery 1 { - format = "%status %percentage %remaining %consumption" - status_chr = "⚇" - status_bat = "⚡" - status_full = "☻" - last_full_capacity = true - low_threshold = "20" - threshold_type = "percentage" - hide_seconds = true - integer_battery_capacity = true +battery_level { + format = "{icon} {percent}% {time_remaining}" + blocks = '🔋' + hide_seconds = True + notify_low_level = True } -cpu_temperature 0 { - format = "%degreesC" -} +#run_watch DHCP { +# pidfile = "/var/run/dhclient*.pid" +#} -run_watch DHCP { - pidfile = "/var/run/dhclient*.pid" -} - -run_watch VPN { - pidfile = "/var/run/vpnc/pid" +run_watch SPVPN { + pidfile = "/var/run/spvpn@*.pid" } tztime local { format = "%Y-%m-%d %H:%M" } -load { - format = "%1min" -} - -disk "/home" { - format = "/home: %percentage_used" -} - disk "/" { - format = "/: %percentage_used" + format = "%avail" } -volume master { - format = "🔈%volume" - format_muted = "🔇" +volume_status { + format = '🔈{percentage}%' + format_muted = '🔇' device = "pulse" + button_mute = 1 + # Scroll wheel + button_up = 4 + button_down = 5 + thresholds = [ + (1, '#FFFFFF') + ] +} + +spotify { + format_down = '' + format_stopped = '' +} + +keyboard_locks { + format = '{num} {caps} {scr}' + icon_caps_on = 'C' + icon_caps_off = 'C' + icon_num_on = 'N' + icon_num_off = 'N' + icon_scr_on = 'S' + icon_scr_off = 'S' + color_bad = '#DDDDDD' +} + +arch_updates { + format = 'Updates: {pacman}' + hide_if_zero = True +} + +sysdata { + cache_timeout = 5 + format = "[\?color=cpu CPU: {cpu_usage}%], [\?color=mem Mem: {mem_used_percent}%], [\?color=load L1: {load1}]" + #format = '[\?color=cpu CPU: {cpu_usage}%], ' } diff --git a/.config/i3/thurstybook.config b/.config/i3/thurstybook.config index 8479947..d7c3ef6 100644 --- a/.config/i3/thurstybook.config +++ b/.config/i3/thurstybook.config @@ -1,5 +1,5 @@ bar { - status_command i3status -c ~/.config/i3/status/$HOSTNAME.config + status_command py3status -c ~/.config/i3/status/$HOSTNAME.config tray_output primary # $i3-theme-bar }