aboutsummaryrefslogtreecommitdiffstats
path: root/i3/bar.py
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-02-02 20:35:42 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-02-02 22:01:01 +0100
commit7e7aa928072775240ff70ca61f2dd0e8a09242d8 (patch)
treee22d0a73612befd95744dec72770e74593ab47cd /i3/bar.py
downloaddotfiles-7e7aa928072775240ff70ca61f2dd0e8a09242d8.tar.xz
(Let's pretend that this is the) initial commit
Diffstat (limited to 'i3/bar.py')
-rw-r--r--i3/bar.py55
1 files changed, 55 insertions, 0 deletions
diff --git a/i3/bar.py b/i3/bar.py
new file mode 100644
index 0000000..0ce9469
--- /dev/null
+++ b/i3/bar.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+
+import subprocess
+
+from i3pystatus import Status
+
+status = Status(standalone=True)
+
+status.register("clock",
+ format="%y-%m-%d %H:%M:%S",)
+
+status.register("battery",
+ format="{status} {percentage:.2f}% {remaining:%E%hh:%Mm}",
+ alert=True,
+ alert_percentage=20,
+ status={
+ "DIS": "↓",
+ "CHR": "↑",
+ "FULL": "=",
+ },
+ battery_ident="BAT1",)
+
+
+status.register("temp",
+ format="{temp:.0f}°C",)
+
+status.register("pulseaudio",
+ format="♪:{volume}%",)
+
+status.register("mpd",
+ format="{status} {artist} > {title}",
+ status={
+ "pause": "✧",
+ "play": "▶",
+ "stop": "◾",
+ },)
+
+status.register("wireless",
+ interface="wlp3s0",
+ format_up="{v4cidr}{quality:3.0f}%",)
+
+# Shows disk usage of /
+# Format:
+# 42/128G [86G]
+status.register("disk",
+ path="/home/kyrias/media",
+ format="{avail}G",)
+
+status.register("disk",
+ path="/",
+ format="{avail}G",)
+
+
+
+status.run()