hs.hotkey.bind({ "cmd" }, "\\", function() hs.application.launchOrFocus("Terminal") hs.timer.doAfter(0.1, function() hs.osascript.applescript([[ tell application "Terminal" do script "tmux" in front window do script "tmux-td" in front window end tell ]]) end) end)