diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-11-20 11:56:50 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-11-20 11:56:50 +0100 |
commit | c45e458384168c2547f0b3678e8f88a6e957eb2a (patch) | |
tree | 2d6f4c2969cc47c7876d0995668dff56ef51f51f | |
parent | 7f9e47e4d442fc8d7ea336752f66acb7e8739513 (diff) | |
download | dotfiles-c45e458384168c2547f0b3678e8f88a6e957eb2a.tar.xz |
Commit lithium i3bar
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | i3/bar.py | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -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", |