[GH-ISSUE #558] [Feature request] Allow keybinding to switch between screens #437

Open
opened 2026-05-05 06:23:03 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @rieje on GitHub (Feb 11, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/558

The function switchToScreen only allows switching to a specific screen, so it is not currently possible to have a single binding switch between 2 screens. Implementing the feature to switch focus between two screens (e.g. keystroke(shift+control+space) = switchToScreen(screen1|screen2) or to switch to previously focused screen (e.g. keystroke(shift+control+space) = switchToScreen(previous) would make switching focus between 2 screens much more intuitive (matches the behavior of a desktop environment or window manager that has multiple workspaces) and doesn't take up valuable bindings (I like to use vim-like bindings and currently need to control+alt+h|l).

Originally created by @rieje on GitHub (Feb 11, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/558 The function `switchToScreen` only allows switching to a specific screen, so it is not currently possible to have a single binding switch between 2 screens. Implementing the feature to switch focus between two screens (e.g. `keystroke(shift+control+space) = switchToScreen(screen1|screen2)` or to switch to previously focused screen (e.g. `keystroke(shift+control+space) = switchToScreen(previous)` would make switching focus between 2 screens much more intuitive (matches the behavior of a desktop environment or window manager that has multiple workspaces) and doesn't take up valuable bindings (I like to use vim-like bindings and currently need to `control+alt+h|l`).
gitea-mirror added the
enhancement
label 2026-05-05 06:23:03 -06:00
Author
Owner

@the-wes commented on GitHub (Mar 3, 2020):

It may be easier to do this with SwitchInDirection

<!-- gh-comment-id:593858341 --> @the-wes commented on GitHub (Mar 3, 2020): It may be easier to do this with SwitchInDirection
Author
Owner

@github-actions[bot] commented on GitHub (Sep 29, 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:700373048 --> @github-actions[bot] commented on GitHub (Sep 29, 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.
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#437
No description provided.