[GH-ISSUE #807] Hotkey assignments should be host specific #639

Open
opened 2026-05-05 06:49:26 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @fesc2000 on GitHub (Jul 21, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/807

Operating Systems

Server: Ubuntu
Client: MacOS 10.15

Barrier Version

2.3.2

Steps to reproduce bug

I see two issues when i define a hotkey which shall be applicable to only a specific host.
For example,

  • host A (Client, MacOS), has a host specific hotkey defined
  • host B (Server, Linux), which wuold like to use the key in its "original assignment"

What i see:

  • Nothing is sent to B when i press the hotkey (assigned to A), except this X event:

    keys: 4294967262 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

  • Host A gets the correct remapped key press/release, but it is sent also to A when i am focused on host B!

I consider this as an overall design issue, but maybe i am missing the point of hotkeys ...
What i would expect:

  • Hotkeys to a specific host are sent only when focused to it
  • The original key is sent to other hosts if they are focused, or
  • Different hosts can handle different hotkey assignments

At least the config file syntax would be prepared for this.

I might fix it myself and file a pull request (at least for my machine setup), but maybe i am missing something here.

Here is my hotkey section:
section: options
heartbeat = 10000
relativeMouseMoves = true
screenSaverSync = false
win32KeepForeground = false
clipboardSharing = true
switchCorners = none +top-left +top-right
switchCornerSize = 45
keystroke(Copy) = keystroke(Meta+c,Felixs-MacBook-Pro.local)
keystroke(Paste) = keystroke(Meta+v,Felixs-MacBook-Pro.local)
keystroke(Cut) = keystroke(Meta+x,Felixs-MacBook-Pro.local)
keystroke(Find) = keystroke(Meta+f,Felixs-MacBook-Pro.local)
keystroke(Undo) = keystroke(Meta+z,Felixs-MacBook-Pro.local)
keystroke(Redo) = keystroke(Shift+Meta+z,Felixs-MacBook-Pro.local)
keystroke(Front) = keystroke(Alt+Control+Left,Felixs-MacBook-Pro.local)
mousebutton(Control+2) = toggleScreen
end

Originally created by @fesc2000 on GitHub (Jul 21, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/807 ### Operating Systems ### Server: Ubuntu Client: MacOS 10.15 ### Barrier Version ### 2.3.2 ### Steps to reproduce bug ### I see two issues when i define a hotkey which shall be applicable to only a specific host. For example, - host A (Client, MacOS), has a host specific hotkey defined - host B (Server, Linux), which wuold like to use the key in its "original assignment" What i see: - Nothing is sent to B when i press the hotkey (assigned to A), except this X event: keys: 4294967262 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - Host A gets the correct remapped key press/release, but it is sent also to A when i am focused on host B! I consider this as an overall design issue, but maybe i am missing the point of hotkeys ... What i would expect: - Hotkeys to a specific host are sent only when focused to it - The original key is sent to other hosts if they are focused, or - Different hosts can handle different hotkey assignments At least the config file syntax would be prepared for this. I might fix it myself and file a pull request (at least for my machine setup), but maybe i am missing something here. Here is my hotkey section: section: options heartbeat = 10000 relativeMouseMoves = true screenSaverSync = false win32KeepForeground = false clipboardSharing = true switchCorners = none +top-left +top-right switchCornerSize = 45 keystroke(Copy) = keystroke(Meta+c,Felixs-MacBook-Pro.local) keystroke(Paste) = keystroke(Meta+v,Felixs-MacBook-Pro.local) keystroke(Cut) = keystroke(Meta+x,Felixs-MacBook-Pro.local) keystroke(Find) = keystroke(Meta+f,Felixs-MacBook-Pro.local) keystroke(Undo) = keystroke(Meta+z,Felixs-MacBook-Pro.local) keystroke(Redo) = keystroke(Shift+Meta+z,Felixs-MacBook-Pro.local) keystroke(Front) = keystroke(Alt+Control+Left,Felixs-MacBook-Pro.local) mousebutton(Control+2) = toggleScreen end
gitea-mirror added the
enhancement
label 2026-05-05 06:49:26 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 20, 2020):

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:695453190 --> @github-actions[bot] commented on GitHub (Sep 20, 2020): This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@p12tic commented on GitHub (Jan 10, 2021):

Let's not close valid feature requests.

<!-- gh-comment-id:757537065 --> @p12tic commented on GitHub (Jan 10, 2021): Let's not close valid feature requests.
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#639
No description provided.