mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1163] Trying to make a hotkey for Ctrl to Cmd on PC|Mac build. #935
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#935
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Uzukii on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1163
I want to be able to copy and paste in Mac OS with the same keys you do in Windows (Ctrl+C, Ctrl+V). The problem is Mac uses Cmd+C, Cmd+V and Windows doesn't have a Cmd key. It has the Win key in it's place. And the Win key can't be used as a modifier key in Barrier. So I can't make a Ctrl = Win or Ctrl+C, Ctrl+V = Cmd(Win)+C, Cmd(Win)+V hotkey.
@serek2298 commented on GitHub (May 20, 2021):
Its working this way by deafult in my case. Simply enable clipboard sharing.
@Uzukii commented on GitHub (May 20, 2021):
There's clipboard sharing and then there's the convenience of being able to use the same physical key presses on the keyboard for Mac OS and Windows. I want to be able to press Ctrl+C and V in Mac OS to copy and paste, rather than Win+C and V. Same goes for other hotkeys like Ctrl+A for select all.
@lededev commented on GitHub (May 20, 2021):
You need read wiki.
https://github.com/debauchee/barrier/wiki/Command-Line#server_config
shift, ctrl, alt, altgr, meta, and super allow these keys to be mapped to a different key for that screen.
@Uzukii commented on GitHub (May 20, 2021):
Sorry, but I don't know what I'm looking at here. Where in the wiki does it tell you how to map the Ctrl key to the Cmd ⌘ key in Mac OS?
I know there's a way to remap keys in Mac OS itself but that doesn't work with keyboards connected through Barrier.
@jbg commented on GitHub (Jun 2, 2021):
@Uzukii just below the section linked to above you will find https://github.com/debauchee/barrier/wiki/Command-Line#screen-options which shows how to solve your problem. "shift, ctrl, alt, altgr, meta, and super allow these keys to be mapped to a different key for that screen" -- I believe the cmd/windows key is
metabut try it out and see.@owlwoopyto commented on GitHub (Nov 9, 2021):
@Uzukii I had this same question. In the server configuration settings, for my Mac client I set the Ctrl: modifier key to Super. Now when I press Ctrl+C on my keyboard, it copies text on the Mac. Hope this helps.
@YiannisDermitzakis commented on GitHub (Nov 10, 2021):
@Uzukii
You need to create a configuration file and set the remapping there. What @owlwoopyto suggests is something like:
@Uzukii commented on GitHub (Nov 11, 2021):
I can't believe this. When I read owlwoopyto comment I didn't know what he was talking about. It wasn't until after I read YiannisDermitzakis comment about making a configuration file that I realized something. You can double click the icons under the Screens and links tab in the Configure Server window.. facepalm It's the same as making a configuration file. Thanks guys. I'm going to go bang my head against a wall now.
@Fauzdar1 commented on GitHub (Aug 1, 2022):
Strange Enough, with custom config, Client never starts and stuck on Starting in Mac, it works without custom config. Seems like I've to suffer with this Ctrl Command mess.
@Camble commented on GitHub (Nov 22, 2022):
@Fauzdar1 You can change the modifier keys without creating a custom config file. Just open the screen settings in the GUI and select from the dropdowns.
@MMShep97 commented on GitHub (Mar 6, 2025):
I'd like to link this comment on a related issue on mapping windows -> mac keys as I spent more than I would've preferred searching for this: https://github.com/debauchee/barrier/issues/201#issuecomment-448074872
@nbolton commented on GitHub (Mar 7, 2025):
Please try Deskflow or Input Leap as Barrier is no longer in development.
https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap
Both are compatible with Barrier client/server so you can try on one of your computers.
If this is still an issue in those projects, we would appreciate a cross-post of this issue.