aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i3/bar.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/i3/bar.py b/i3/bar.py
index 9acb003..bb0387a 100644
--- a/i3/bar.py
+++ b/i3/bar.py
@@ -1,7 +1,10 @@
# -*- coding: utf-8 -*-
+import socket
+
from i3pystatus import Status
+hostname = socket.gethostname()
status = Status(standalone=True)
status.register("clock",
@@ -25,21 +28,15 @@ status.register("temp",
status.register("pulseaudio",
format="♪:{volume}%",)
-# status.register("mpd",
-# format="{status} {artist} > {title}",
-# status={
-# "pause": "✧",
-# "play": "▶",
-# "stop": "◾",
-# },)
-
-status.register("network",
- interface="wlp4s0",
- format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",)
-
-# Shows disk usage of /
-# Format:
-# 42/128G [86G]
+if hostname == "tirxu.kyriasis.com":
+ status.register("network",
+ interface="wlp4s0",
+ format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",)
+
+ status.register("network",
+ interface="enp0s20u3u1u3",
+ format_up="{interface}: {v4cidr}")
+
status.register("disk",
path="/boot",
format="{avail}G",)