Skip to content
New issue

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

How about Hot Key? #28

Open
Lawrence-of-AnKing opened this issue Aug 5, 2024 · 3 comments
Open

How about Hot Key? #28

Lawrence-of-AnKing opened this issue Aug 5, 2024 · 3 comments

Comments

@Lawrence-of-AnKing
Copy link

While I change the space to space_fn, it works bad on some games like Don't Starve, and some software like PS.

Will you add hot key to start/stop a configurations?

@rszyma
Copy link
Owner

rszyma commented Aug 11, 2024

Instead of adding global keybind to kanata-tray itself (this would be platform-dependent, and on linux also DE/WM-dependent), an easier solution would be to bind a key in kanata to send a custom tcp event, and then listen for it in kanata-tray.

Kanata already has a way to send custom messages via tcp https://github.com/jtroo/kanata/blob/ac27bdb58b28ac915964aad273a186e7a9d8d9ce/tcp_protocol/src/lib.rs#L11C5-L11C16, so only kanata-tray side implementation would be needed

@rszyma
Copy link
Owner

rszyma commented Aug 11, 2024

I just realized, that only stopping (aka pausing) would be possible this way. Unpausing won't be able to work, because kanata will not be working.

@rszyma
Copy link
Owner

rszyma commented Nov 8, 2024

2 other ideas:

  • ipc (tcp?)
  • daemon + client cli to control the daemon

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

No branches or pull requests

2 participants