[GH-ISSUE #840] [Feature request] Screen-wise keystroke configuration #667

Open
opened 2026-05-05 06:52:33 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @tom-tan on GitHub (Aug 18, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/840

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
Originally created by @tom-tan on GitHub (Aug 18, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/840 The wiki describes the current `keystroke` option as follows: (in [Barrier wiki](https://github.com/debauchee/barrier/wiki/Command-Line#options)) > keystroke(key) = actions (in [Synergy wiki](https://github.com/symless/synergy-core/wiki/Text-Config#actions) 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#667
No description provided.