Switch terminal to alacritty
This commit is contained in:
parent
dbae8d997c
commit
30ea307dfd
@ -1,8 +1,7 @@
|
|||||||
local super = {"cmd", "alt", "ctrl"}
|
local super = {"cmd", "alt", "ctrl"}
|
||||||
hs.hotkey.bind(super, "W", function()
|
hs.hotkey.bind(super, "W", function()
|
||||||
--hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send()
|
--hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send()
|
||||||
hs.alert.show("Reloading...")
|
hs.alert.show(hs.application.frontmostApplication():title())
|
||||||
hs.reload()
|
|
||||||
end)
|
end)
|
||||||
hs.hotkey.bind(super, "R", function()
|
hs.hotkey.bind(super, "R", function()
|
||||||
hs.reload()
|
hs.reload()
|
||||||
@ -19,7 +18,7 @@ escCtrlDouble.addModifier = function(ev)
|
|||||||
app = hs.application.frontmostApplication()
|
app = hs.application.frontmostApplication()
|
||||||
if app:title() == "iTerm2" then
|
if app:title() == "iTerm2" then
|
||||||
ev:setFlags({['ctrl'] = true})
|
ev:setFlags({['ctrl'] = true})
|
||||||
elseif app:title() == "kitty" then
|
elseif app:title() == "Alacritty" then
|
||||||
ev:setFlags({['ctrl'] = true})
|
ev:setFlags({['ctrl'] = true})
|
||||||
else
|
else
|
||||||
ev:setFlags({['cmd'] = true})
|
ev:setFlags({['cmd'] = true})
|
||||||
@ -27,4 +26,4 @@ escCtrlDouble.addModifier = function(ev)
|
|||||||
return ev
|
return ev
|
||||||
end
|
end
|
||||||
|
|
||||||
hs.alert.show("Configuration reloaded")
|
hs.alert.show("Configuration rereloaded")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user