Skip to content

Instantly share code, notes, and snippets.

@swcho
swcho / init.lua
Created July 28, 2022 00:07
나의 hammerspoon 설정
local inputEnglish = "com.apple.keylayout.ABC"
function hello()
local inputSource = hs.keycodes.currentSourceID()
if not (inputSource == inputEnglish) then
hs.eventtap.keyStroke({}, 'right')
hs.keycodes.currentSourceID(inputEnglish)
--hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send()
hs.eventtap.keyStroke({}, 'escape')
end
settings.showModeStatus = false;
settings.editableBodyCare = false;
// console.log('SurfingKeys', api)
// getEventListeners(window).copy?.forEach(({ listener }) => window.removeEventListener('copy', listener))
// chrome.debugger.sendCommand({ tabId }, "Target.setAutoAttach", {
// autoAttach: true,
// waitForDebuggerOnStart: false,