From 70b860568d1aa1230a3021fef2838fdfdcd42df7 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Fri, 6 Sep 2024 17:46:19 +0900 Subject: [PATCH] feat(hammerspoon): F12 to use Warp to replace Kitty --- hammerspoon/init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua index b848db9..16c39dc 100644 --- a/hammerspoon/init.lua +++ b/hammerspoon/init.lua @@ -252,19 +252,19 @@ for _, v in pairs(hspoon_list) do end hs.hotkey.bind({}, "F12", function() - local app = hs.application.get("net.kovidgoyal.kitty") + local app = hs.application.get("dev.warp.Warp-Stable") if app then if not app:mainWindow() then - app:selectMenuItem({"kitty", "New OS window"}) + app:selectMenuItem({"Warp", "New Window"}) elseif app:isFrontmost() then app:hide() else app:activate() end - app:mainWindow():moveToUnit'[100, 80, 0, 0]' + app:mainWindow():moveToUnit'[100, 80, 0, 0]' else - hs.application.launchOrFocus("/Applications/kitty.app") - app = hs.application.get("net.kovidgoyal.kitty") + hs.application.launchOrFocus("/Applications/Warp.app") + app = hs.application.get("dev.warp.Warp-Stable") end end)