We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got this log in console:
2025-02-15 18:46:02: -- Loading extension: application 2025-02-15 18:46:02: -- Done. 2025-02-15 18:46:04: 18:46:04 hotkey: Enabled hotkey ⌃U 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃[ 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃L 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃⇧L 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃I 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃J 2025-02-15 18:46:04: hotkey: Enabled hotkey ⌃G 2025-02-15 18:46:49: 18:46:49 hotkey: Disabled hotkey ⌃I 2025-02-15 18:46:49: hotkey: Disabled hotkey ⌃J 2025-02-15 18:46:49: hotkey: Disabled hotkey ⌃G 2025-02-15 18:46:56: 18:46:56 hotkey: Enabled hotkey ⌃I 2025-02-15 18:46:56: hotkey: Enabled hotkey ⌃J 2025-02-15 18:46:56: hotkey: Enabled hotkey ⌃G 2025-02-15 18:51:41: 18:51:41 hotkey: Disabled hotkey ⌃I 2025-02-15 18:51:41: hotkey: Disabled hotkey ⌃J 2025-02-15 18:51:41: hotkey: Disabled hotkey ⌃G 2025-02-15 18:52:17: 18:52:17 hotkey: Enabled hotkey ⌃I 2025-02-15 18:52:17: hotkey: Enabled hotkey ⌃J 2025-02-15 18:52:17: hotkey: Enabled hotkey ⌃G 2025-02-15 18:52:20: 18:52:20 hotkey: Disabled hotkey ⌃I 2025-02-15 18:52:20: hotkey: Disabled hotkey ⌃J 2025-02-15 18:52:20: hotkey: Disabled hotkey ⌃G 2025-02-15 18:52:27: -- Loading extension: eventtap 2025-02-15 18:53:13: 18:53:13 hotkey: Enabled hotkey ⌃I 2025-02-15 18:53:13: hotkey: Enabled hotkey ⌃J 2025-02-15 18:53:13: hotkey: Enabled hotkey ⌃G 2025-02-15 19:02:12: 19:02:12 hotkey: Disabled hotkey ⌃I 2025-02-15 19:02:12: hotkey: Disabled hotkey ⌃J 2025-02-15 19:02:12: hotkey: Disabled hotkey ⌃G 2025-02-15 19:02:17: 19:02:17 hotkey: Enabled hotkey ⌃I 2025-02-15 19:02:17: hotkey: Enabled hotkey ⌃J 2025-02-15 19:02:17: hotkey: Enabled hotkey ⌃G 2025-02-15 19:07:18: 19:07:18 hotkey: Disabled hotkey ⌃I 2025-02-15 19:07:18: hotkey: Disabled hotkey ⌃J 2025-02-15 19:07:18: hotkey: Disabled hotkey ⌃G 2025-02-15 19:07:21: 19:07:21 hotkey: Enabled hotkey ⌃I 2025-02-15 19:07:21: hotkey: Enabled hotkey ⌃J 2025-02-15 19:07:21: hotkey: Enabled hotkey ⌃G 2025-02-15 19:43:45: 19:43:45 hotkey: Disabled hotkey ⌃I 2025-02-15 19:43:45: hotkey: Disabled hotkey ⌃J 2025-02-15 19:43:45: hotkey: Disabled hotkey ⌃G 2025-02-15 19:43:48: 19:43:48 hotkey: Enabled hotkey ⌃I 2025-02-15 19:43:48: hotkey: Enabled hotkey ⌃J 2025-02-15 19:43:48: hotkey: Enabled hotkey ⌃G 2025-02-15 19:43:54: 19:43:54 hotkey: Disabled hotkey ⌃I 2025-02-15 19:43:54: hotkey: Disabled hotkey ⌃J 2025-02-15 19:43:54: hotkey: Disabled hotkey ⌃G 2025-02-15 19:44:02: 19:44:02 hotkey: Enabled hotkey ⌃I 2025-02-15 19:44:02: hotkey: Enabled hotkey ⌃J 2025-02-15 19:44:02: hotkey: Enabled hotkey ⌃G 2025-02-15 19:44:06: 19:44:06 hotkey: Disabled hotkey ⌃I 2025-02-15 19:44:06: hotkey: Disabled hotkey ⌃J 2025-02-15 19:44:06: hotkey: Disabled hotkey ⌃G 2025-02-15 19:44:08: 19:44:08 hotkey: Enabled hotkey ⌃I 2025-02-15 19:44:08: hotkey: Enabled hotkey ⌃J 2025-02-15 19:44:08: hotkey: Enabled hotkey ⌃G 2025-02-15 19:44:14: 19:44:14 hotkey: Disabled hotkey ⌃I 2025-02-15 19:44:14: hotkey: Disabled hotkey ⌃J 2025-02-15 19:44:14: hotkey: Disabled hotkey ⌃G 2025-02-15 19:44:15: 19:44:15 hotkey: Enabled hotkey ⌃I 2025-02-15 19:44:15: hotkey: Enabled hotkey ⌃J 2025-02-15 19:44:15: hotkey: Enabled hotkey ⌃G 2025-02-15 19:44:16: 19:44:16 hotkey: Disabled hotkey ⌃I 2025-02-15 19:44:16: hotkey: Disabled hotkey ⌃J 2025-02-15 19:44:16: hotkey: Disabled hotkey ⌃G 2025-02-15 19:52:31: 19:52:31 hotkey: Enabled hotkey ⌃I 2025-02-15 19:52:31: hotkey: Enabled hotkey ⌃J 2025-02-15 19:52:31: hotkey: Enabled hotkey ⌃G 2025-02-15 19:53:00: 19:53:00 hotkey: Disabled hotkey ⌃I 2025-02-15 19:53:00: hotkey: Disabled hotkey ⌃J 2025-02-15 19:53:00: hotkey: Disabled hotkey ⌃G 2025-02-15 19:53:04: 19:53:04 hotkey: Enabled hotkey ⌃I 2025-02-15 19:53:04: hotkey: Enabled hotkey ⌃J 2025-02-15 19:53:04: hotkey: Enabled hotkey ⌃G 2025-02-15 20:04:19: 20:04:19 hotkey: Disabled hotkey ⌃I 2025-02-15 20:04:19: hotkey: Disabled hotkey ⌃J 2025-02-15 20:04:19: hotkey: Disabled hotkey ⌃G 2025-02-15 20:04:32: 20:04:32 hotkey: Enabled hotkey ⌃I 2025-02-15 20:04:32: hotkey: Enabled hotkey ⌃J 2025-02-15 20:04:32: hotkey: Enabled hotkey ⌃G 2025-02-15 20:04:38: 20:04:38 hotkey: Disabled hotkey ⌃I 2025-02-15 20:04:38: hotkey: Disabled hotkey ⌃J 2025-02-15 20:04:38: hotkey: Disabled hotkey ⌃G 2025-02-15 20:07:44: 20:07:44 hotkey: Enabled hotkey ⌃I 2025-02-15 20:07:44: hotkey: Enabled hotkey ⌃J 2025-02-15 20:07:44: hotkey: Enabled hotkey ⌃G 2025-02-15 20:09:50: 20:09:50 hotkey: Disabled hotkey ⌃I 2025-02-15 20:09:50: hotkey: Disabled hotkey ⌃J 2025-02-15 20:09:50: hotkey: Disabled hotkey ⌃G 2025-02-15 20:09:57: 20:09:57 hotkey: Enabled hotkey ⌃I 2025-02-15 20:09:57: hotkey: Enabled hotkey ⌃J 2025-02-15 20:09:57: hotkey: Enabled hotkey ⌃G 2025-02-15 20:09:59: 20:09:59 hotkey: Disabled hotkey ⌃I 2025-02-15 20:09:59: hotkey: Disabled hotkey ⌃J 2025-02-15 20:09:59: hotkey: Disabled hotkey ⌃G 2025-02-15 20:11:39: 20:11:39 hotkey: Enabled hotkey ⌃I 2025-02-15 20:11:39: hotkey: Enabled hotkey ⌃J 2025-02-15 20:11:39: hotkey: Enabled hotkey ⌃G 2025-02-15 20:11:54: 20:11:54 hotkey: Disabled hotkey ⌃I 2025-02-15 20:11:54: hotkey: Disabled hotkey ⌃J 2025-02-15 20:11:54: hotkey: Disabled hotkey ⌃G 2025-02-15 20:12:01: 20:12:01 hotkey: Enabled hotkey ⌃I 2025-02-15 20:12:01: hotkey: Enabled hotkey ⌃J 2025-02-15 20:12:01: hotkey: Enabled hotkey ⌃G 2025-02-15 20:12:47: 20:12:47 hotkey: Disabled hotkey ⌃I 2025-02-15 20:12:47: hotkey: Disabled hotkey ⌃J 2025-02-15 20:12:47: hotkey: Disabled hotkey ⌃G 2025-02-15 20:13:38: 20:13:38 hotkey: Enabled hotkey ⌃I 2025-02-15 20:13:38: hotkey: Enabled hotkey ⌃J 2025-02-15 20:13:38: hotkey: Enabled hotkey ⌃G 2025-02-15 20:13:52: 20:13:52 hotkey: Disabled hotkey ⌃I 2025-02-15 20:13:52: hotkey: Disabled hotkey ⌃J 2025-02-15 20:13:52: hotkey: Disabled hotkey ⌃G 2025-02-15 20:14:55: 20:14:55 hotkey: Enabled hotkey ⌃I 2025-02-15 20:14:55: hotkey: Enabled hotkey ⌃J 2025-02-15 20:14:55: hotkey: Enabled hotkey ⌃G 2025-02-15 20:15:09: 20:15:09 hotkey: Disabled hotkey ⌃I 2025-02-15 20:15:09: hotkey: Disabled hotkey ⌃J 2025-02-15 20:15:09: hotkey: Disabled hotkey ⌃G 2025-02-15 20:15:22: 20:15:22 hotkey: Enabled hotkey ⌃I 2025-02-15 20:15:22: hotkey: Enabled hotkey ⌃J 2025-02-15 20:15:22: hotkey: Enabled hotkey ⌃G 2025-02-15 20:15:39: 20:15:39 hotkey: Disabled hotkey ⌃I 2025-02-15 20:15:39: hotkey: Disabled hotkey ⌃J 2025-02-15 20:15:39: hotkey: Disabled hotkey ⌃G 2025-02-15 20:15:53: 20:15:53 hotkey: Enabled hotkey ⌃I 2025-02-15 20:15:53: hotkey: Enabled hotkey ⌃J 2025-02-15 20:15:53: hotkey: Enabled hotkey ⌃G 2025-02-15 20:15:55: 20:15:55 hotkey: Disabled hotkey ⌃I 2025-02-15 20:15:55: hotkey: Disabled hotkey ⌃J 2025-02-15 20:15:55: hotkey: Disabled hotkey ⌃G 2025-02-15 20:19:42: 20:19:42 hotkey: Enabled hotkey ⌃I 2025-02-15 20:19:42: hotkey: Enabled hotkey ⌃J 2025-02-15 20:19:42: hotkey: Enabled hotkey ⌃G 2025-02-15 20:19:54: 20:19:54 hotkey: Disabled hotkey ⌃I 2025-02-15 20:19:54: hotkey: Disabled hotkey ⌃J 2025-02-15 20:19:54: hotkey: Disabled hotkey ⌃G 2025-02-15 20:22:46: 20:22:46 hotkey: Enabled hotkey ⌃I 2025-02-15 20:22:46: hotkey: Enabled hotkey ⌃J 2025-02-15 20:22:46: hotkey: Enabled hotkey ⌃G 2025-02-15 20:25:03: 20:25:03 hotkey: Disabled hotkey ⌃I 2025-02-15 20:25:03: hotkey: Disabled hotkey ⌃J 2025-02-15 20:25:03: hotkey: Disabled hotkey ⌃G 2025-02-15 20:25:03: hotkey: Enabled hotkey ⌃I 2025-02-15 20:25:03: hotkey: Enabled hotkey ⌃J 2025-02-15 20:25:03: hotkey: Enabled hotkey ⌃G 2025-02-15 20:27:22: 20:27:22 hotkey: Disabled hotkey ⌃I 2025-02-15 20:27:22: hotkey: Disabled hotkey ⌃J 2025-02-15 20:27:22: hotkey: Disabled hotkey ⌃G 2025-02-15 20:30:04: 20:30:04 hotkey: Enabled hotkey ⌃I 2025-02-15 20:30:04: hotkey: Enabled hotkey ⌃J 2025-02-15 20:30:04: hotkey: Enabled hotkey ⌃G 2025-02-15 20:31:44: 20:31:44 hotkey: Disabled hotkey ⌃I 2025-02-15 20:31:44: hotkey: Disabled hotkey ⌃J 2025-02-15 20:31:44: hotkey: Disabled hotkey ⌃G 2025-02-15 20:40:03: 20:40:03 hotkey: Enabled hotkey ⌃I 2025-02-15 20:40:03: hotkey: Enabled hotkey ⌃J 2025-02-15 20:40:03: hotkey: Enabled hotkey ⌃G 2025-02-15 20:43:58: 20:43:58 hotkey: Disabled hotkey ⌃I 2025-02-15 20:43:58: hotkey: Disabled hotkey ⌃J 2025-02-15 20:43:58: hotkey: Disabled hotkey ⌃G 2025-02-15 20:44:01: 20:44:01 hotkey: Enabled hotkey ⌃I 2025-02-15 20:44:01: hotkey: Enabled hotkey ⌃J 2025-02-15 20:44:01: hotkey: Enabled hotkey ⌃G 2025-02-15 20:49:28: 20:49:28 hotkey: Disabled hotkey ⌃I 2025-02-15 20:49:28: hotkey: Disabled hotkey ⌃J 2025-02-15 20:49:28: hotkey: Disabled hotkey ⌃G 2025-02-15 20:50:06: 20:50:06 hotkey: Enabled hotkey ⌃I 2025-02-15 20:50:06: hotkey: Enabled hotkey ⌃J 2025-02-15 20:50:06: hotkey: Enabled hotkey ⌃G 2025-02-15 20:52:22: 20:52:22 hotkey: Disabled hotkey ⌃I 2025-02-15 20:52:22: hotkey: Disabled hotkey ⌃J 2025-02-15 20:52:22: hotkey: Disabled hotkey ⌃G 2025-02-15 20:53:23: 20:53:23 hotkey: Enabled hotkey ⌃I 2025-02-15 20:53:23: hotkey: Enabled hotkey ⌃J 2025-02-15 20:53:23: hotkey: Enabled hotkey ⌃G 2025-02-15 20:53:27: 20:53:27 hotkey: Disabled hotkey ⌃I 2025-02-15 20:53:27: hotkey: Disabled hotkey ⌃J 2025-02-15 20:53:27: hotkey: Disabled hotkey ⌃G 2025-02-15 20:53:53: 20:53:53 hotkey: Enabled hotkey ⌃I 2025-02-15 20:53:53: hotkey: Enabled hotkey ⌃J 2025-02-15 20:53:53: hotkey: Enabled hotkey ⌃G 2025-02-15 20:54:12: 20:54:12 hotkey: Disabled hotkey ⌃I 2025-02-15 20:54:12: hotkey: Disabled hotkey ⌃J 2025-02-15 20:54:12: hotkey: Disabled hotkey ⌃G 2025-02-15 20:55:17: 20:55:17 hotkey: Enabled hotkey ⌃I 2025-02-15 20:55:17: hotkey: Enabled hotkey ⌃J 2025-02-15 20:55:17: hotkey: Enabled hotkey ⌃G 2025-02-15 20:57:13: 20:57:13 hotkey: Disabled hotkey ⌃I 2025-02-15 20:57:13: hotkey: Disabled hotkey ⌃J 2025-02-15 20:57:13: hotkey: Disabled hotkey ⌃G 2025-02-15 20:57:18: 20:57:18 hotkey: Enabled hotkey ⌃I 2025-02-15 20:57:18: hotkey: Enabled hotkey ⌃J 2025-02-15 20:57:18: hotkey: Enabled hotkey ⌃G 2025-02-15 20:57:24: 20:57:24 hotkey: Disabled hotkey ⌃I 2025-02-15 20:57:24: hotkey: Disabled hotkey ⌃J 2025-02-15 20:57:24: hotkey: Disabled hotkey ⌃G 2025-02-15 20:57:26: 20:57:26 hotkey: Enabled hotkey ⌃I 2025-02-15 20:57:26: hotkey: Enabled hotkey ⌃J 2025-02-15 20:57:26: hotkey: Enabled hotkey ⌃G 2025-02-15 21:02:35: 21:02:35 hotkey: Disabled hotkey ⌃I 2025-02-15 21:02:35: hotkey: Disabled hotkey ⌃J 2025-02-15 21:02:35: hotkey: Disabled hotkey ⌃G 2025-02-15 21:03:32: 21:03:32 hotkey: Enabled hotkey ⌃I 2025-02-15 21:03:32: hotkey: Enabled hotkey ⌃J 2025-02-15 21:03:32: hotkey: Enabled hotkey ⌃G 2025-02-15 21:03:51: 21:03:51 hotkey: Disabled hotkey ⌃I 2025-02-15 21:03:51: hotkey: Disabled hotkey ⌃J 2025-02-15 21:03:51: hotkey: Disabled hotkey ⌃G 2025-02-15 21:04:11: 21:04:11 hotkey: Enabled hotkey ⌃I 2025-02-15 21:04:11: hotkey: Enabled hotkey ⌃J 2025-02-15 21:04:11: hotkey: Enabled hotkey ⌃G 2025-02-15 21:04:13: 21:04:13 hotkey: Disabled hotkey ⌃I 2025-02-15 21:04:13: hotkey: Disabled hotkey ⌃J 2025-02-15 21:04:13: hotkey: Disabled hotkey ⌃G 2025-02-15 21:04:53: 21:04:53 hotkey: Enabled hotkey ⌃I 2025-02-15 21:04:53: hotkey: Enabled hotkey ⌃J 2025-02-15 21:04:53: hotkey: Enabled hotkey ⌃G 2025-02-15 21:05:01: 21:05:01 hotkey: Disabled hotkey ⌃I 2025-02-15 21:05:01: hotkey: Disabled hotkey ⌃J 2025-02-15 21:05:01: hotkey: Disabled hotkey ⌃G 2025-02-15 21:05:10: 21:05:10 hotkey: Enabled hotkey ⌃I 2025-02-15 21:05:10: hotkey: Enabled hotkey ⌃J 2025-02-15 21:05:10: hotkey: Enabled hotkey ⌃G
It's 100% not respond and I have force quit it in activity monitor app if I start it on macos startup.
and then randomly not respond and require force quit and re-start again while in use later after macos startup.
this is my init.lua file (bindkey names can be changed):
hs.hotkey.bind({ "cmd", "ctrl" }, "c", function() hs.execute("my-script.sh", true) end) hs.hotkey.bind({ "cmd", "ctrl" }, "v", function() hs.execute("my-script2.sh", true) end) hs.hotkey.bind({ "cmd", "ctrl" }, "z", function() hs.execute("my-script3.sh", true) end) hs.hotkey.bind({ "cmd", "ctrl" }, "x", function() hs.execute("my-script4.sh", true) end) hs.hotkey.bind({ "cmd", "ctrl" }, "b", function() hs.execute('/path/to/application', false) end) local hotkeys = { hs.hotkey.new({ "ctrl" }, "a", function() hs.eventtap.keyStroke({ "cmd" }, "a") end), hs.hotkey.new({ "ctrl" }, "b", function() hs.eventtap.keyStroke({}, "b") end), hs.hotkey.new({ "ctrl" }, "c", function() hs.eventtap.keyStroke({}, "c") end), hs.hotkey.new({ "ctrl", "shift" }, "d", function() hs.eventtap.keyStroke({ "shift" }, "d") end) } local function setHotkeys(hotkeys, enable) for _, hotkey in ipairs(hotkeys) do if enable then hotkey:enable() else hotkey:disable() end end end -- Application watcher function function applicationWatcher(appName, eventType) if eventType == hs.application.watcher.activated then setHotkeys(hotkeys, true) end end -- Start the application watcher local appWatcher = hs.application.watcher.new(applicationWatcher) appWatcher:start()
The text was updated successfully, but these errors were encountered:
My guess is that it's a garbage collection issue. Try capturing your watcher in a global variable.
See: https://www.hammerspoon.org/go/#variablelife
Sorry, something went wrong.
@latenitefilms Thanks, i have appWatcher = hs.application.watcher.new(applicationWatcher) for a while and the issue still happens.
appWatcher = hs.application.watcher.new(applicationWatcher)
nothing special from console, only see some keybind disable/enable when switch apps.
this causes issue:
hs.hotkey.bind({ "cmd", "ctrl" }, "b", function() hs.execute('/path/to/application', false) end)
async run and wait for the app to exit, but it won't as it's gui app :)
No branches or pull requests
I got this log in console:
It's 100% not respond and I have force quit it in activity monitor app if I start it on macos startup.
and then randomly not respond and require force quit and re-start again while in use later after macos startup.
this is my init.lua file (bindkey names can be changed):
The text was updated successfully, but these errors were encountered: