local module = {}

function appLauncher(bundleID)
	return function()
		local focusedApp = hs.application.frontmostApplication()

		if focusedApp:bundleID() == bundleID then
			focusedApp:hide()
		else
			hs.application.launchOrFocusByBundleID(bundleID)
		end
	end
end

module.init = function()
	hs.hotkey.bind({'cmd', 'shift'}, 'space', appLauncher('net.kovidgoyal.kitty'))
	hs.hotkey.bind({'ctrl', 'alt', 'shift'}, 'space', appLauncher('io.dynalist'))
end

return module

local module = {}

function appLauncher(bundleID)
	return function()
		local focusedApp = hs.application.frontmostApplication()

		if focusedApp:bundleID() == bundleID then
			focusedApp:hide()
		else
			hs.application.launchOrFocusByBundleID(bundleID)
		end
	end
end

module.init = function()
	hs.hotkey.bind({'cmd', 'shift'}, 'space', appLauncher('com.googlecode.iterm2'))
	hs.hotkey.bind({'ctrl', 'alt', 'shift'}, 'space', appLauncher('io.dynalist'))
end

return module

Revert "Launch Kitty instead of iTerm"
Revert "Launch Kitty instead of iTerm"

This reverts commit 379d04d7f7aa3ba133f6be81ed2551e88376f445.
