|
|
@ -252,10 +252,10 @@ for _, v in pairs(hspoon_list) do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
hs.hotkey.bind({}, "F12", function() |
|
|
|
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 app then |
|
|
|
if not app:mainWindow() then |
|
|
|
if not app:mainWindow() then |
|
|
|
app:selectMenuItem({"kitty", "New OS window"}) |
|
|
|
app:selectMenuItem({"Warp", "New Window"}) |
|
|
|
elseif app:isFrontmost() then |
|
|
|
elseif app:isFrontmost() then |
|
|
|
app:hide() |
|
|
|
app:hide() |
|
|
|
else |
|
|
|
else |
|
|
@ -263,8 +263,8 @@ hs.hotkey.bind({}, "F12", function() |
|
|
|
end |
|
|
|
end |
|
|
|
app:mainWindow():moveToUnit'[100, 80, 0, 0]' |
|
|
|
app:mainWindow():moveToUnit'[100, 80, 0, 0]' |
|
|
|
else |
|
|
|
else |
|
|
|
hs.application.launchOrFocus("/Applications/kitty.app") |
|
|
|
hs.application.launchOrFocus("/Applications/Warp.app") |
|
|
|
app = hs.application.get("net.kovidgoyal.kitty") |
|
|
|
app = hs.application.get("dev.warp.Warp-Stable") |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|