From c6c6fca6d2ab2bfd5e7d1ed4ded2e1bc4f5b02e5 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 11 Jun 2014 17:25:47 +0200 Subject: [PATCH] brightness: control brightness On the X1, the brightness is controlled by the OS. On other machines, if it is not, we will double the requested changes. We can live with that. --- lib/brightness.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/brightness.lua b/lib/brightness.lua index b6cc684..d990e10 100644 --- a/lib/brightness.lua +++ b/lib/brightness.lua @@ -14,7 +14,7 @@ module("vbe/brightness") local nid = nil local function change(what) - -- We don't really change the brightness, just report the change... + os.execute("xbacklight -" .. what) local out = awful.util.pread("xbacklight -get") if not out then return end @@ -29,9 +29,9 @@ local function change(what) end function increase() - change("+ 5") + change("inc 5") end function decrease() - change("- 5") + change("dec 5") end