aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-11 12:09:35 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-06-01 18:37:35 +0200
commitbc55664115467b4160be9939486c25eea9c5e132 (patch)
treeb4ea3332a010390c336dab169540a53f2281eb24
parent074a68dce6b5b912773d0d27f2e61075bc0919b6 (diff)
downloaddotfiles-bc55664115467b4160be9939486c25eea9c5e132.tar.xz
i3/bar: Add enp0s25 to network on zorg
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--X11/xinitrc2
-rw-r--r--i3/bar.py9
2 files changed, 9 insertions, 2 deletions
diff --git a/X11/xinitrc b/X11/xinitrc
index ced8386..a99d2e0 100644
--- a/X11/xinitrc
+++ b/X11/xinitrc
@@ -7,6 +7,4 @@
systemctl --user import-environment DISPLAY XAUTHORITY SSH_AGENT_PID SSH_AUTH_SOCK
systemctl --user restart dumpwatch
-ibus-daemon -d -r
-
exec i3 -c /home/kyrias/.config/i3/config
diff --git a/i3/bar.py b/i3/bar.py
index 27041f2..c3368d0 100644
--- a/i3/bar.py
+++ b/i3/bar.py
@@ -10,6 +10,7 @@ status = Status(standalone=True)
status.register("clock",
format="%y-%m-%d %H:%M:%S%z",)
+
status.register("battery",
format="⚡:{percentage:.2f}% {remaining:%E%hh:%Mm}{status}",
alert=True,
@@ -25,14 +26,21 @@ status.register("battery",
status.register("temp",
format="{temp:.0f}°C",)
+
status.register("pulseaudio",
format="♪:{volume}%",)
+
if hostname == "zorg.kyriasis.com":
status.register("network",
interface="wlp4s0",
format_up="{essid:.10s}: {v4cidr} {quality:3.0f}%",)
+ status.register("network",
+ interface="enp0s25",
+ format_up="{interface}: {v4cidr}")
+
+
elif hostname == "tirxu.kyriasis.com":
status.register("network",
interface="wlp4s0",
@@ -42,6 +50,7 @@ elif hostname == "tirxu.kyriasis.com":
interface="enp0s20u3u1u3",
format_up="{interface}: {v4cidr}")
+
status.register("disk",
path="/boot",
divisor=1024**2,