From 45d100a49bc1b88f25b61a1c23932088f374360b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Oct 2019 00:04:06 +0200 Subject: catalina_brightness_bullshit: Get current brightness on init Instead of setting the arbitrary 50% brightness default, get the actual current brightness on initialisation so we can restore the real value in case the computer is locked/slept before the timer can store it. --- catalina_brightness_bullshit.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'catalina_brightness_bullshit.lua') diff --git a/catalina_brightness_bullshit.lua b/catalina_brightness_bullshit.lua index 63e54d7..1bc68c8 100644 --- a/catalina_brightness_bullshit.lua +++ b/catalina_brightness_bullshit.lua @@ -19,8 +19,7 @@ -- along with this program. If not, see . --- Default brightness to 50%. -cbb_brightness = 50 +cbb_brightness = hs.brightness.get() half_hour = 60 * 30 -- cgit v1.2.3