mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #201] Cmd/Option key swapping for MacOSX. #164
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#164
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 @memecode on GitHub (Dec 17, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/201
Operating Systems
Server: Windows 10
Client: MacOSX 10.13.4
Barrier Version
2.1.0 on both machines
Steps to reproduce bug
Normally I would use 'Alt' on the windows keyboard as the Command ⌘ key. And apparently you can map it to do that using the .conf file. By default the windows key maps to command and alt maps to option.
So what I'd like to see is that there is options to map the windows key -> option, and the alt key to command in the user interface. But failing that I need to be able to find the barrier.conf file to edit it directly. Currently it's location is not discoverable by new users. Sure it says "configuration file" in the UI for the server but that file doesn't exist on my mac client... so where is it saving my client specific settings? The man page is not installed and reading the code seems to indicate "~/barrier.conf".
However if I view the log I get this:
[2018-12-18T10:49:18] INFO: starting client
[2018-12-18T10:49:18] INFO: config file: /var/folders/f1/4dbtx98n2mg737sn2y0v3vpw0000gr/T/Barrier.eWezhq
[2018-12-18T10:49:18] INFO: log level: INFO
It seems to be auto-generating new config file paths every time I run it. I've spent far too long trying to edit the config to fix the keys.
Other info
This isn't a show stopper but it's pretty annoying to have to manually adjust to different modifier keys to use for copy and paste...
@AdrianKoshka commented on GitHub (Dec 18, 2018):
Is this what you're looking for? (alc.localdomain is the client)
@AdrianKoshka commented on GitHub (Dec 18, 2018):
fwiw, every machine has this UI dialogue: (This is the server)
can be found by double-clicking any of the machines in the configure server dialogue:
@memecode commented on GitHub (Dec 18, 2018):
Yes that is what I need. It's just difficult to find because I was expecting it to be on the client side.
The discoverable version of this is a menu option on the client like File->Screen Settings or something that brings up that dialog on the client side (or any side really... just for the local machine, be it client or server). Is that something that would be acceptable to add? Like if I submit a patch what is the likely hood of it being accepted?
@memecode commented on GitHub (Dec 18, 2018):
Actually one option would be to merge the "settings" dialog and the "screen settings" dialog so that everything is in one place. The fact that there are 2 different sets of settings isn't obvious to new users. I found the "settings" easily enough but it didn't let me edit the key modifier mappings.
@AdrianKoshka commented on GitHub (Dec 18, 2018):
I admit it's not perfect, it's something we inherited from synergy. Did this solve your issue though?
@memecode commented on GitHub (Dec 18, 2018):
Yes I got it working how I want now. This is what I ended up with:

@harshhpareek commented on GitHub (Aug 3, 2020):
@AdrianKoshka I had some trouble finding this. It deserves to be on the main FAQ page.
@LaszloGombos commented on GitHub (Oct 30, 2020):
Change will only take affect after stop/start the server (reload config does not seem to be enough).
@amanjeev commented on GitHub (Nov 4, 2021):
This is my setup to make this work. I had to leave super as is and turn off ctrl because scrolling on mac client would end up zooming in and out instead of scrolling. So the other solutions in this discussion did not work for me.
server - ubuntu
client - macos
barrier version 2.3.3
@matiasbaldanza commented on GitHub (Jan 21, 2022):
This solved my issue perfectly. Thanks!
@QuantumGrizzly commented on GitHub (May 17, 2022):
I spent today about an hour experimenting with karabiner-elements to remap my keyboard keys to mac without success. And the config in Barrier is exactly what I needed. Thank you for asking the question in this issue and for people to provide the screenshots of the settings. You saved me so much time.
@Fauzdar1 commented on GitHub (Aug 1, 2022):
Same, I tried messing up with Modifier keys and Karabiner and these settings were all there.
@ezorzin commented on GitHub (Sep 14, 2023):
Hi, I have a Mac (italian layout) as server and Windows 10 as client.
If on the Mac I type "<" or ">" then nothing is typed on Windows.
Moreover, if I type backtick on mac = ALT+\ (on the italian layout) nothing happens on Windows.
I can type "[" and "]" by typing CTRL+ALT+è and CTRL+ALT++ (the last + is the + key) and have it translated as ALTGR+è and ALTGR++ on Windows.
How can I type "<", ">" and backtick?
I tried all is written here, nothing worked for me.
Thanks