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

Also pass XF86 Power Off and Power Down keys through when using --pass-media-keys #131

Merged
merged 4 commits into from
Sep 21, 2019

Conversation

Raymo111
Copy link
Owner

@Raymo111 Raymo111 commented Sep 5, 2019

I find it very annoying that I have to unlock before I can sleep my computer. This should not have any additional security risks than the other media keys.

@PandorasFox
Copy link

While I'm for passing these two keys, I'd rather do this one of two ways:

  • rename the arg to something like "pass xf86 keys"
  • have a separate arg for the power keys

The main reasons being that the power key(s) aren't really media keys, and it changes the meaning of the existing arg.

(I think the former option isn't as great, since it would also inherently mean removing the current arg & also impacts existing workflows).

Otherwise looks good.

@Raymo111
Copy link
Owner Author

How about we make 3 separate options?

  1. Pass xf86 media keys
  2. Pass xf86 brightness keys
  3. Pass xf86 power keys
    So then if we ever want to pass more keys we can always go back and add another option? Just because technically brightness isn't media either...

@PandorasFox
Copy link

Sounds good. I'd forgotten that the brightness keys were passed too.

@Raymo111
Copy link
Owner Author

Ok, I've made it work.

i3lock.c Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants