[GH-ISSUE #595] Hotkeys do nothing #467

Open
opened 2026-05-05 06:29:14 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @jdobelmann on GitHub (Mar 22, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/595

Operating Systems

Server: Arch Linux, Awesome WM
Client: Windows 10 Education

Barrier Version

2.3.2

Steps to reproduce bug

  1. Click on "Configure Server"
  2. Attempt to create a hotkey (I tried to assign "Ctrl+Meta+Shift+Backspace" to "lockCursorToScreen", for example)
  3. Reload configuration

Other info

Barrier will allow me to create a hotkey, but when I press the hotkey, nothing happens. I also have other hotkeys for switching between displays, but those do nothing, as well. This issue occurs both when I configure the server interactively and when I try to use a configuration file. When I use my Windows 10 PC as the server, these hotkeys all work as intended. Pressing a hotkey does not add any information to the log.

My configuration file:

section: screens
	Arch:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		preserveFocus = true
		switchCorners = none 
		switchCornerSize = 0
	Win10:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		preserveFocus = false
		switchCorners = none 
		switchCornerSize = 0
end

section: aliases
end

section: links
	Arch:
		right = Win10
	Win10:
		left = Arch
end

section: options
	relativeMouseMoves = true
	screenSaverSync = true
	win32KeepForeground = false
	clipboardSharing = true
	switchCorners = none 
	switchCornerSize = 0
	keystroke(Control+Shift+Meta+BackSpace) = lockCursorToScreen(toggle)
	keystroke(Shift+Control+Meta+Right) = switchInDirection(right)
	keystroke(Shift+Control+Meta+Up) = switchInDirection(up)
	keystroke(Shift+Control+Meta+Down) = switchInDirection(down)
	keystroke(Shift+Control+Meta+Left) = switchInDirection(left)
end


Originally created by @jdobelmann on GitHub (Mar 22, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/595 ### Operating Systems ### Server: Arch Linux, Awesome WM Client: Windows 10 Education ### Barrier Version ### 2.3.2 ### Steps to reproduce bug ### 1. Click on "Configure Server" 2. Attempt to create a hotkey (I tried to assign "Ctrl+Meta+Shift+Backspace" to "lockCursorToScreen", for example) 3. Reload configuration ### Other info ### Barrier will allow me to create a hotkey, but when I press the hotkey, nothing happens. I also have other hotkeys for switching between displays, but those do nothing, as well. This issue occurs both when I configure the server interactively and when I try to use a configuration file. When I use my Windows 10 PC as the server, these hotkeys all work as intended. Pressing a hotkey does not add any information to the log. My configuration file: ``` section: screens Arch: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false preserveFocus = true switchCorners = none switchCornerSize = 0 Win10: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false preserveFocus = false switchCorners = none switchCornerSize = 0 end section: aliases end section: links Arch: right = Win10 Win10: left = Arch end section: options relativeMouseMoves = true screenSaverSync = true win32KeepForeground = false clipboardSharing = true switchCorners = none switchCornerSize = 0 keystroke(Control+Shift+Meta+BackSpace) = lockCursorToScreen(toggle) keystroke(Shift+Control+Meta+Right) = switchInDirection(right) keystroke(Shift+Control+Meta+Up) = switchInDirection(up) keystroke(Shift+Control+Meta+Down) = switchInDirection(down) keystroke(Shift+Control+Meta+Left) = switchInDirection(left) end ```
Author
Owner

@ghost commented on GitHub (Apr 14, 2020):

I can confirm this behavior on current Debian 10 package version if the Meta-Key is in the keystroke. If Meta it is not in the keystroke, it works.

<!-- gh-comment-id:613672813 --> @ghost commented on GitHub (Apr 14, 2020): I can confirm this behavior on current Debian 10 package version if the Meta-Key is in the keystroke. If Meta it is not in the keystroke, it works.
Author
Owner

@jdobelmann commented on GitHub (Apr 17, 2020):

I edited the keystroke to not use the Meta key, and can confirm that it works now. Thanks for the suggestion.

<!-- gh-comment-id:615134825 --> @jdobelmann commented on GitHub (Apr 17, 2020): I edited the keystroke to not use the Meta key, and can confirm that it works now. Thanks for the suggestion.
Author
Owner

@sgon00 commented on GitHub (Aug 19, 2021):

I am meetinng the same issue today. I am using debian 10 package too. Is this resolved in the latest version? If not, the bug should keep opened. Cheers.

<!-- gh-comment-id:901573068 --> @sgon00 commented on GitHub (Aug 19, 2021): I am meetinng the same issue today. I am using debian 10 package too. Is this resolved in the latest version? If not, the bug should keep opened. Cheers.
Author
Owner

@shymega commented on GitHub (Aug 19, 2021):

Reopening, for now, if you can test the latest Barrier on Debian, that'd be useful to gauge.

<!-- gh-comment-id:901992465 --> @shymega commented on GitHub (Aug 19, 2021): Reopening, for now, if you can test the latest Barrier on Debian, that'd be useful to gauge.
Author
Owner

@martinbogo commented on GitHub (Aug 25, 2021):

Tested in Debian 10 and Debian 11 -- both fail. I'm afraid the Meta keystroke is still intercepted and not recognized.

<!-- gh-comment-id:905524783 --> @martinbogo commented on GitHub (Aug 25, 2021): Tested in Debian 10 and Debian 11 -- both fail. I'm afraid the Meta keystroke is still intercepted and not recognized.
Author
Owner

@hagare commented on GitHub (Sep 8, 2021):

I have a Mac and was having the same issue with hotkeys doing nothing. Did not work with Meta or Alt. I ended up using Page Up and Page Down to switch between displays, and that worked perfectly. Moral of the story choose your hotkeys wisely.

<!-- gh-comment-id:915344266 --> @hagare commented on GitHub (Sep 8, 2021): I have a Mac and was having the same issue with hotkeys doing nothing. Did not work with Meta or Alt. I ended up using Page Up and Page Down to switch between displays, and that worked perfectly. Moral of the story choose your hotkeys wisely.
Author
Owner

@metala commented on GitHub (Sep 22, 2023):

I've noticed that in interactive mode if you hold Ctrl+Shit+Alt it shows as "Ctrl+Shift+Meta". This may be a hint.

Edit.
X maps Alt+Shift to Meta. If you don't want the Alt to get shifted to Meta, then you can run xmodmap -e "keycode 64 = Alt_L"
It fixes the issue.

<!-- gh-comment-id:1731346031 --> @metala commented on GitHub (Sep 22, 2023): I've noticed that in interactive mode if you hold Ctrl+Shit+Alt it shows as "Ctrl+Shift+Meta". This may be a hint. Edit. X maps Alt+Shift to Meta. If you don't want the Alt to get shifted to Meta, then you can run `xmodmap -e "keycode 64 = Alt_L"` It fixes the issue.
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#467
No description provided.