From 30ea307dfd430e744be234973cff004a6464f61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 22 Jan 2020 21:46:31 +0100 Subject: [PATCH] Switch terminal to alacritty --- wm/hammerspoon/init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wm/hammerspoon/init.lua b/wm/hammerspoon/init.lua index 0e95dec..058939f 100755 --- a/wm/hammerspoon/init.lua +++ b/wm/hammerspoon/init.lua @@ -1,8 +1,7 @@ local super = {"cmd", "alt", "ctrl"} hs.hotkey.bind(super, "W", function() --hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send() - hs.alert.show("Reloading...") - hs.reload() + hs.alert.show(hs.application.frontmostApplication():title()) end) hs.hotkey.bind(super, "R", function() hs.reload() @@ -10,7 +9,7 @@ end) --ctrlDoubleTap = require("ctrlDoubleTap") --ctrlDoubleTap.timeFrame = 0.3 ---ctrlDoubleTap.action = function() +--ctrlDoubleTap.action = function() --hs.eventtap.keyStroke({}, "f19") --end @@ -19,7 +18,7 @@ escCtrlDouble.addModifier = function(ev) app = hs.application.frontmostApplication() if app:title() == "iTerm2" then ev:setFlags({['ctrl'] = true}) - elseif app:title() == "kitty" then + elseif app:title() == "Alacritty" then ev:setFlags({['ctrl'] = true}) else ev:setFlags({['cmd'] = true}) @@ -27,4 +26,4 @@ escCtrlDouble.addModifier = function(ev) return ev end -hs.alert.show("Configuration reloaded") +hs.alert.show("Configuration rereloaded")