From c45e458384168c2547f0b3678e8f88a6e957eb2a Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 20 Nov 2017 11:56:50 +0100 Subject: Commit lithium i3bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- i3/bar.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'i3') diff --git a/i3/bar.py b/i3/bar.py index 5bc9319..b1b2e50 100644 --- a/i3/bar.py +++ b/i3/bar.py @@ -51,6 +51,37 @@ if hostname == "hydrogen.kyriasis.com": }, battery_ident="BAT1",) +elif hostname.startswith("lithium"): + status.register("battery", + color="#CDC0B0", + full_color="#7CFC00", + charging_color="#7CFC00", + critical_color="#EE4000", + format="⚡0 {percentage:.2f}% {remaining:%E%hh:%Mm}{status}", + alert=True, + alert_percentage=5, + status={ + "DIS": "↓", + "CHR": "↑", + "FULL": "=", + }, + battery_ident="BAT0",) + + status.register("battery", + color="#CDC0B0", + full_color="#7CFC00", + charging_color="#7CFC00", + critical_color="#EE4000", + format="⚡1 {percentage:.2f}% {remaining:%E%hh:%Mm}{status}", + alert=True, + alert_percentage=5, + status={ + "DIS": "↓", + "CHR": "↑", + "FULL": "=", + }, + battery_ident="BAT1",) + else: status.register("battery", color="#CDC0B0", @@ -126,6 +157,19 @@ elif hostname == "hydrogen.kyriasis.com": interface="enp0s31f6", format_up="{interface}: {v4cidr}") +elif hostname.startswith('lithium'): + status.register("network", + color_up="#7CFC00", + color_down="#EE4000", + interface="wlp3s0", + format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",) + + status.register("network", + color_up="#7CFC00", + color_down="#EE4000", + interface="enp0s31f6", + format_up="{interface}: {v4cidr}") + status.register("disk", color="#CDC0B0", -- cgit v1.2.3-70-g09d2