Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use keyboard shortcuts #864

Closed
ViniiR opened this issue Oct 28, 2024 · 1 comment
Closed

Unable to use keyboard shortcuts #864

ViniiR opened this issue Oct 28, 2024 · 1 comment

Comments

@ViniiR
Copy link

ViniiR commented Oct 28, 2024

hi, first of all I'm on NixOS and using cinnamon DE(X11)
I've successfully been able to set up keyd and I can confirm this because remapping capslock = q works as expected whoever I've tried the following:

[control+shift]
p = command(firefox)
m = command(firefox)
w = command(wezterm)

and it does not work no matter the variations i try
my intention is to make Control+Shift+p open Firefox the other keybinds are just to see if it's a problem with p, keyd successfully registers key presses when using "sudo keyd monitor" (sudo is necessary for some reason) I am unaware if it's a compatibility problem with cinnamon or if I just miss used the syntax

@nsbgn
Copy link

nsbgn commented Oct 29, 2024

sudo is necessary for some reason

Intercepting and generating keypresses is inherently a privileged action. You wouldn't want all your programs to be able to do that.

That is also the reason why using command() is discouraged for arbitrary applications, especially something like a web browser. You may be able to get it to work by changing the user and setting the appropriate DISPLAY variable, but for hotkeys you're much better off using your WM's config or something like <https//github.com/baskerville/sxhkd>.

cf #692, #593, #211, #229, #243

@ViniiR ViniiR closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants