From 7e197e3b77867401a4fcbc243576f8319ed90d4f Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 3 Jun 2017 01:44:16 +0200 Subject: i3/bar: add backlight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- i3/bar.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'i3') 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", -- cgit v1.2.3-54-g00ecf