Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 357 Bytes
local hotkey = require 'hs.hotkey'
local function module_init()
local mash = config:get("lock.mash", {})
local key = config:get("lock.key", "F13")
hotkey.bind(mash, key, function()
os.execute("/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend")
end)
end
return {
init = module_init
}
You can’t perform that action at this time.