From babda71f9d9a14a9406448b08754e0b526eda88d Mon Sep 17 00:00:00 2001 From: Pandada8 Date: Thu, 7 May 2015 10:11:53 +0800 Subject: [PATCH] Fix typo :( --- i3pystatus/backlight.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/i3pystatus/backlight.py b/i3pystatus/backlight.py index dce6453..d6077a3 100644 --- a/i3pystatus/backlight.py +++ b/i3pystatus/backlight.py @@ -1,6 +1,7 @@ from i3pystatus.file import File -import shutils -import subprocesss +from i3pystatus import Module +import shutil +import subprocess class Backlight(File): @@ -34,16 +35,15 @@ class Backlight(File): } on_upscroll = "lighter" on_downscroll = "darker" - def init(self): self.base_path = self.base_path.format(backlight=self.backlight) - self.has_xbacklight = shutils.which("xbacklight") is not None - super().init() + self.has_xbacklight = shutil.which("xbacklight") is not None + super(Backlight, self).init() def lighter(self): if self.has_xbacklight: - subprocess.Popen(["backlight", '+5']) + subprocess.Popen(["xbacklight", '+5']) def darker(self): if self.has_xbacklight: - subprocess.Popen(["backlight", '-5']) + subprocess.Popen(["xbacklight", '-5'])