Archived
1
0
Fork 0

Fix hammerspoon init.lua

This commit is contained in:
Christoph Heiss 2017-01-20 19:56:46 +01:00
parent 9603f87030
commit 5486922e55

View file

@ -19,7 +19,7 @@ function toggle_window_state(state)
frame_cache[id] = nil
else
frame_cache[id] = win:frame()
toggle_window_state(state)
win:moveToUnit(state)
end
end
@ -125,8 +125,7 @@ hs.timer.doAfter(1, function()
local tz_offset = tonumber(string.sub(os.date('%z'), 1, -3))
for i, v in pairs({'sunrise', 'sunset'}) do
redshift_times[v] = os.date('%H:%M',
hs.location[v](location.latitude, location.longitude, tz_offset)
)
hs.location[v](location.latitude, location.longitude, tz_offset))
end
end