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

[Feature request] Screen-wise keystroke configuration #840

Open
tom-tan opened this issue Aug 18, 2020 · 0 comments
Open

[Feature request] Screen-wise keystroke configuration #840

tom-tan opened this issue Aug 18, 2020 · 0 comments

Comments

@tom-tan
Copy link

tom-tan commented Aug 18, 2020

The wiki describes the current keystroke option as follows:
(in Barrier wiki)

keystroke(key) = actions

(in Synergy wiki that is referred from Barrier wiki)

Actions

(snip)
keystroke(key[,screens])

It enable to convert a keystroke in all the screens to another stroke in the same screen or to convert a keystroke in all the screens to another stroke in the specific screen.

It would be nice to extend keystroke command to support screen-wise keystrokes, i.e., converting a keystroke in the specific screen to another stroke in the specific screen.


Here is an example use case.

Japanese keyboards have special keys to enable and disable Japanese input method.
It translates a sequence of alphabets to Japanese characters (e.g., nihongo to 日本語) and is essential to use Japanese.

The problem is that Windows and mac keyboards provide different keys for this purpose.
That is:

  • Henkan key in Windows and Kana key in mac to enable Japanese input method, and
  • Muhenkan key in Windows and Eisu key in mac to disable Japanese input method.

We want to share the same keyboard with Windows and mac computers while enabling/disabling Japanese input method using the same keys.
That is (in the case of Windows server, for example):

  • we want to convert Henkan to Kana and Muhenkan to Eisu if we focus on mac screen, and
  • we want to send Henkan and Muhenkan as is, if we focus on Windows screen.

It would be nice if Barrier supports the feature to support this use case.

Here is an example of the syntax to support this feature. It is just an example but it would be helpful to show what we want to do.

section: options
        ...
	keystroke(Henkan,mac) = ;keystroke(Kana,mac) # Convert `Henkan` key in mac screen to `Kana` key in the same screen
	keystroke(Muhenkan,mac) = ;keystroke(EisuToggle,mac) # Convert `Muhenkan` key in mac screen to `Eisu` key in the same screen (`Eisu` key is referred as `EisuToggle` in Barrier)
         # In the other screens, `Henkan` and `Muhenkan` are sent as is
end
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

1 participant