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

How should custom lock panels be implemented? #154

Open
tewkanz opened this issue Sep 23, 2022 · 2 comments
Open

How should custom lock panels be implemented? #154

tewkanz opened this issue Sep 23, 2022 · 2 comments
Labels
enhancement New feature or request prio Prioritized bug

Comments

@tewkanz
Copy link

tewkanz commented Sep 23, 2022

I'm trying to update my newm configuration to use gtklock as my lock panel. newm doesn't expose the input inhibitor protocol, it just locks the screen itself. It also takes care of displaying the window, so we don't need the layer shell protocol. Both of those things are fine and gtklock's handling for them can be disabled through command line options.

However, when I enter my password and dismiss the lock window, my screen doesn't unlock. Do I need to redirect the password to the org.newm.auth.Request bus?

It does work if I write a little script that starts gtklock, then calls newm-cmd unlock after it exits. I don't love that though because it decouples the authentication from the screen unlock -- we don't really know why gtklock exited.

Basically, how was this intended to be used? :) It doesn't seem unreasonable to require programs to send their credentials through newm. However, I'm not sure how to make that happen without directly modifying the lock screen program.

@tewkanz
Copy link
Author

tewkanz commented Sep 23, 2022

Maybe we could write a pam module that sends credentials to newm's authentication bus that you plug into the lock screen? Getting a bit out of my comfort zone.

@jbuchermn
Copy link
Owner

Unfortunetaly that's indeed not possible at the moment due to a missing protocol in pywm (see jbuchermn/pywm#18). Once I come around to implementing that, other lock screens should / could work (I suspect there's a little bit more to do, but we will see...)

You could possibly work round org.newm.auth.Request and newm-cmd unlock, but the latter is really only intended for debugging purposes...

@jbuchermn jbuchermn added enhancement New feature or request prio Prioritized bug labels Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio Prioritized bug
Projects
None yet
Development

No branches or pull requests

2 participants