From bc55664115467b4160be9939486c25eea9c5e132 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 11 Nov 2016 12:09:35 +0100 Subject: i3/bar: Add enp0s25 to network on zorg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- i3/bar.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'i3') diff --git a/i3/bar.py b/i3/bar.py index 27041f2..c3368d0 100644 --- a/i3/bar.py +++ b/i3/bar.py @@ -10,6 +10,7 @@ status = Status(standalone=True) status.register("clock", format="%y-%m-%d %H:%M:%S%z",) + status.register("battery", format="⚡:{percentage:.2f}% {remaining:%E%hh:%Mm}{status}", alert=True, @@ -25,14 +26,21 @@ status.register("battery", status.register("temp", format="{temp:.0f}°C",) + status.register("pulseaudio", format="♪:{volume}%",) + if hostname == "zorg.kyriasis.com": status.register("network", interface="wlp4s0", format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",) + status.register("network", + interface="enp0s25", + format_up="{interface}: {v4cidr}") + + elif hostname == "tirxu.kyriasis.com": status.register("network", interface="wlp4s0", @@ -42,6 +50,7 @@ elif hostname == "tirxu.kyriasis.com": interface="enp0s20u3u1u3", format_up="{interface}: {v4cidr}") + status.register("disk", path="/boot", divisor=1024**2, -- cgit v1.2.3-70-g09d2