Skip to content

Instantly share code, notes, and snippets.

@sujayvadlakonda
Created May 22, 2020 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sujayvadlakonda/b2765d342bd311b2e7fb679a482bde6d to your computer and use it in GitHub Desktop.
Save sujayvadlakonda/b2765d342bd311b2e7fb679a482bde6d to your computer and use it in GitHub Desktop.
hs.window.animationDuration = 0
hs.window.filter.default:subscribe(hs.window.filter.windowFocused, function(window, appName)
hs.window.focusedWindow():setFullScreen(true)
end)
function open(name)
return function()
hs.window.desktop():focus()
hs.application.open(name):activate()
end
end
hs.application.open("CornerCal")
hs.hotkey.bind({"alt"}, "C", open("Google Chrome"))
hs.hotkey.bind({"alt"}, "T", open("Terminal"))
hs.hotkey.bind({"alt"}, "E", open("Emacs"))
hs.hotkey.bind({"alt"}, "A", open("Avidemux2.7.app"))
hs.hotkey.bind({"alt"}, "S", open("System Preferences"))
hs.hotkey.bind({"alt"}, "F", open("Finder"))
hs.hotkey.bind({"alt"}, "Q", open("qBittorrent"))
--hs.hotkey.bind({"alt"}, "P", open("Canon MX920 Series"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment