mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-24 09:45:39 +00:00
18 lines
389 B
Lua
18 lines
389 B
Lua
--- === Dismiss Alerts ===
|
|
|
|
local obj = {}
|
|
obj.__index = obj
|
|
|
|
-- Metadata
|
|
obj.name = "DismissAlerts"
|
|
obj.version = "0.1"
|
|
obj.license = "MIT - https://opensource.org/licenses/MIT"
|
|
|
|
function obj:init()
|
|
hs.hotkey.bind({ "cmd", "alt", "ctrl" }, "k", function()
|
|
hs.osascript.applescriptFromFile("Spoons/DismissAlerts.spoon/close_notifications.applescript")
|
|
end)
|
|
end
|
|
|
|
return obj
|