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

Request: Allow running commands as user #593

Closed
dnaik42 opened this issue Oct 8, 2023 · 1 comment
Closed

Request: Allow running commands as user #593

dnaik42 opened this issue Oct 8, 2023 · 1 comment
Labels

Comments

@dnaik42
Copy link

dnaik42 commented Oct 8, 2023

This would be useful for sending messages to programs like polybar, which are running for the user. Another useful feature would be the ability to pass the config file from an arbitrary location rather than in /etc/keyd.

@nsbgn
Copy link

nsbgn commented Oct 8, 2023

commands are discouraged for such use cases --- keyd is meant to simulate a keyboard, not be a hotkey manager, and this inherently needs elevated privileges. Putting the configuration in /etc/keyd also communicates this: you don't want the configuration to be editable by any random program.

See also #211, #229, #243.

That said, you can already run a command as another user using su (though you would likely also need to pass some environment variables to make it work in general).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants