aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-06-03 01:44:16 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2017-06-03 01:44:16 +0200
commit7e197e3b77867401a4fcbc243576f8319ed90d4f (patch)
treebe83ce589b1f80d3c1b2b56a6120284595a53e92
parent8746701254cc67a975b8c2a4f17bdf8bc3be7da4 (diff)
downloaddotfiles-7e197e3b77867401a4fcbc243576f8319ed90d4f.tar.xz
i3/bar: add backlight
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--i3/bar.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/i3/bar.py b/i3/bar.py
index a7a9777..46a656a 100644
--- a/i3/bar.py
+++ b/i3/bar.py
@@ -7,6 +7,7 @@ from i3pystatus import Status
hostname = socket.gethostname()
status = Status(standalone=True)
+
status.register("clock",
format="%y-%m-%d %H:%M:%S%z",)
@@ -46,6 +47,7 @@ else:
},
battery_ident="BAT0",)
+
status.register("temp",
format="{temp:.0f}°C",)
@@ -54,6 +56,11 @@ status.register("pulseaudio",
format="♪:{volume}%",)
+status.register("backlight",
+ backlight="intel_backlight",
+ format="🔆: {percentage}% ({brightness}/{max_brightness})")
+
+
if hostname == "zorg.kyriasis.com":
status.register("network",
interface="wlp4s0",