diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-11-20 11:33:43 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-11-20 11:50:15 +0100 |
commit | b1933053efafe44e6dd9cbc794400c963ed5394e (patch) | |
tree | 03b9db867a821d50fcf10b3a8262cf3f6f66e861 | |
parent | 28611ee21f476ecfe608975555485cacec24b4f9 (diff) | |
download | dotfiles-b1933053efafe44e6dd9cbc794400c963ed5394e.tar.xz |
i3bar: New formatting
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | i3/bar.py | 47 |
1 files changed, 39 insertions, 8 deletions
@@ -16,12 +16,17 @@ status = Status(standalone=True) status.register("clock", - format="%y-%m-%d %H:%M:%S%z",) + color="#CDC0B0", + format="%y-%m-%d %H:%M:%S%z") if hostname == "hydrogen.kyriasis.com": status.register("battery", - format="⚡0: {percentage:.2f}% {remaining:%E%hh:%Mm}{status}", + 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={ @@ -32,7 +37,11 @@ if hostname == "hydrogen.kyriasis.com": battery_ident="BAT0",) status.register("battery", - format="⚡1: {percentage:.2f}% {remaining:%E%hh:%Mm}{status}", + 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={ @@ -44,7 +53,11 @@ if hostname == "hydrogen.kyriasis.com": else: status.register("battery", - format="⚡:{percentage:.2f}% {remaining:%E%hh:%Mm}{status}", + color="#CDC0B0", + full_color="#7CFC00", + charging_color="#7CFC00", + critical_color="#EE4000", + format="⚡ {percentage:.2f}% {remaining:%E%hh:%Mm}{status}", alert=True, alert_percentage=5, status={ @@ -56,56 +69,74 @@ else: status.register("temp", + color="#CDC0B0", format="{Package_id_0}°C {Core_0_bar}{Core_1_bar}", hints={"markup": "pango"}, lm_sensors_enabled=True) status.register("pulseaudio", - format="♪:{volume}%",) + color_unmuted="#CDC0B0", + color_muted="#EE4000", + format="♪ {volume}%",) status.register("backlight", + color="#CDC0B0", backlight="intel_backlight", - format="🔆: {percentage}% ({brightness}/{max_brightness})") + format="🔆 {percentage}% ({brightness}/{max_brightness})") if hostname == "zorg.kyriasis.com": status.register("network", + color_up="#7CFC00", + color_down="#EE4000", interface="wlp4s0", format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",) status.register("network", + color_up="#7CFC00", + color_down="#EE4000", interface="enp0s25", format_up="{interface}: {v4cidr}") elif hostname == "tirxu.kyriasis.com": status.register("network", + color_up="#7CFC00", + color_down="#EE4000", interface="wlp4s0", format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",) status.register("network", + color_up="#7CFC00", + color_down="#EE4000", interface="enp0s20u3u1u3", format_up="{interface}: {v4cidr}") elif hostname == "hydrogen.kyriasis.com": status.register("network", + color_up="#7CFC00", + color_down="#EE4000", interface="wlp4s0", 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", path="/boot", divisor=1024**2, - format="/boot: {avail}M",) + format="/boot {avail}M",) status.register("disk", + color="#CDC0B0", path="/", - format="/: {avail}G",) + format="/ {avail}G",) status.run() |