|
|
@ -40,7 +40,9 @@ function obj:start()
|
|
|
|
for app, _ in pairs(self.quitAppsAfter) do
|
|
|
|
for app, _ in pairs(self.quitAppsAfter) do
|
|
|
|
self.windowFilter:allowApp(app)
|
|
|
|
self.windowFilter:allowApp(app)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self.windowFilter:subscribe(hs.window.filter.windowUnfocused, function(window, appName)
|
|
|
|
self.windowFilter:subscribe(
|
|
|
|
|
|
|
|
{hs.window.filter.windowFocused, hs.window.filter.windowUnfocused},
|
|
|
|
|
|
|
|
function(window, appName)
|
|
|
|
local name = window:application():name()
|
|
|
|
local name = window:application():name()
|
|
|
|
self.lastFocused[name] = os.time()
|
|
|
|
self.lastFocused[name] = os.time()
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|