Skip to content

Conversation

@kang8
Copy link

@kang8 kang8 commented Jan 9, 2026

Summary

  • Add optional hs.application.watcher mode for apps that hs.window.filter can't detect (e.g., kitty-quick-access)
  • Support new configuration format: { source = "input source name", watcher = "application" }
  • Refactor code to use separate functions for window filter and app watcher
  • Bump version to 1.1

Backward Compatibility

Fully backward compatible. The original string value format still works:

-- Old format (still works)
["WeChat"] = "Pinyin - Simplified"

-- New format (optional)
["kitty-quick-access"] = { source = "ABC", watcher = "application" }

Fixes #351

@kang8 kang8 force-pushed the feature/input-source-switch-app-watcher branch from fead06b to c80e7fa Compare January 9, 2026 13:02
…witching

Some apps like kitty-quick-access cannot be captured by window filters.
This adds an alternative watcher mode using hs.application.watcher that
triggers on app activation events instead.

Config format now supports both string (uses window filter) and table
with source and watcher type specification.

Fixes Hammerspoon#351
@kang8 kang8 force-pushed the feature/input-source-switch-app-watcher branch from c80e7fa to 005e2a1 Compare January 9, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InputSourceSwitch: Window filter cannot detect some applications

1 participant