[GH-ISSUE #1000] Feature Request: Hold Alt on Windows / CMD on macOS to switch #800

Open
opened 2026-05-05 07:09:30 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @naezith on GitHub (Jan 2, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1000

Cursor switches even when one computer is in fullscreen mode. There is no way to stop it.

It would be great to have a checkbox "Hold -Alt on Windows- or -CMD on macOS- to switch". A dropdown for CTRL Win Alt or CTRL Option CMD would be more preferable.

This way it would jump only when I want it.

Originally created by @naezith on GitHub (Jan 2, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1000 Cursor switches even when one computer is in fullscreen mode. There is no way to stop it. It would be great to have a checkbox "Hold -Alt on Windows- or -CMD on macOS- to switch". A dropdown for `CTRL Win Alt` or `CTRL Option CMD` would be more preferable. This way it would jump only when I want it.
Author
Owner

@albertony commented on GitHub (Jan 4, 2021):

Looking into the code, there are traces of options for requring shift, control and/or alt key to be held to enable switching. Does not seem to be exposed in GUI, and are not documented as server configuration file options.

Did a quick test running command line versions and verified that it works to require Shift key to be held for switching, by adding the following to the server configuration file:

section: options
    switchNeedsShift = true
end

The other options are named switchNeedsControl and switchNeedsAlt.

Tried to add them manually to the registry settings that GUI uses, but that did not seem to work, so probably needs a code change to work with GUI.

One alternative is to export your GUI configurations to file (menu Barrier->Save Configuration), edit the file, and use it from gui with the file based configuration option ("Use existing configuration").

As an alternative you can configure "switch on double tap" from the "Advanced server settings" panel in GUI, which may be good enough for preventing accidental switches.

<!-- gh-comment-id:753969580 --> @albertony commented on GitHub (Jan 4, 2021): Looking into the code, there are traces of options for requring shift, control and/or alt key to be held to enable switching. Does not seem to be exposed in GUI, and are not documented as server configuration file [options](https://github.com/debauchee/barrier/wiki/Command-Line#options). Did a quick test running command line versions and verified that it works to require Shift key to be held for switching, by adding the following to the server configuration file: ``` section: options switchNeedsShift = true end ``` The other options are named `switchNeedsControl` and `switchNeedsAlt`. Tried to add them manually to the registry settings that GUI uses, but that did not seem to work, so probably needs a code change to work with GUI. One alternative is to export your GUI configurations to file (menu Barrier->Save Configuration), edit the file, and use it from gui with the file based configuration option ("Use existing configuration"). As an alternative you can configure "switch on double tap" from the "Advanced server settings" panel in GUI, which may be good enough for preventing accidental switches.
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#800
No description provided.