From e968f322d61da8ed43559144d314851e2408dcda Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 8 Jun 2017 10:41:03 -0500 Subject: [PATCH] Moving to py3status --- .config/i3/dtarchaio.config | 2 +- .config/i3/status/dtarchaio.config | 59 ++++++++++++++++++++++-------- 2 files changed, 45 insertions(+), 16 deletions(-) diff --git a/.config/i3/dtarchaio.config b/.config/i3/dtarchaio.config index 15246f5..77497c9 100644 --- a/.config/i3/dtarchaio.config +++ b/.config/i3/dtarchaio.config @@ -12,7 +12,7 @@ exec chromium # Start i3bar to display a workspace bar bar { - status_command i3status -c ~/.config/i3/status/$HOSTNAME.config + status_command py3status -c ~/.config/i3/status/$HOSTNAME.config tray_output primary output $maindisp # $i3-theme-bar diff --git a/.config/i3/status/dtarchaio.config b/.config/i3/status/dtarchaio.config index 8a955d7..f72198f 100644 --- a/.config/i3/status/dtarchaio.config +++ b/.config/i3/status/dtarchaio.config @@ -1,30 +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 += "run_watch DHCP" order += "run_watch SPVPN" -order += "wireless _first_" +order += "wifi" order += "ethernet _first_" #order += "battery 0" +order += "keyboard_locks" order += "load" order += "tztime local" -wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" +wifi { + format = "W: {icon} {signal_dbm} {ssid} {ip}|W: down" } ethernet _first_ { @@ -57,8 +57,37 @@ disk "/" { 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}/{aur}' + hide_if_zero = True + include_aur = True }