aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-11-20 11:56:50 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-11-20 11:56:50 +0100
commitc45e458384168c2547f0b3678e8f88a6e957eb2a (patch)
tree2d6f4c2969cc47c7876d0995668dff56ef51f51f
parent7f9e47e4d442fc8d7ea336752f66acb7e8739513 (diff)
downloaddotfiles-c45e458384168c2547f0b3678e8f88a6e957eb2a.tar.xz
Commit lithium i3bar
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--i3/bar.py44
1 files changed, 44 insertions, 0 deletions
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",