-
Notifications
You must be signed in to change notification settings - Fork 404
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
FR: Emit a lock
event on lock
#239
Comments
What kind of event are you referring to, specifically? Is there some standardized protocol to implement against? How do other locking tools do it? |
keepassxc (keepassxreboot/keepassxc#545) uses the dbus notification to lock the database. IIUC, using I wasn't able to make this work on my system but if you figure it out, you can easily replace whatever way you use to lock your system with |
@orestisfl Thanks for the info. I've tried out @Airblader I'm not as advanced here, I think that @droidmonkey could help answering these questions:) |
IMHO i3lock should set the |
That seems like a good approach |
I agree, following this would be good because it's a centralized effort. I'm not sure about adding dbus to i3lock for it, though. @stapelberg what are your thoughts? |
I agree that the goal of having loginctl know the session is locked is a good goal, and I have wanted this feature in the past myself :) That said, I do wonder if xss-lock should be the place where that signal gets sent, because that’s what we currently rely on for integrating with logind. Could it be done there? That approach has the nice side-effect that other niche screen lockers used via xss-lock would also benefit. |
@stapelberg Indeed it can be done in xss-lock, there are patches for it: https://github.com/xdbob/xss-lock/compare/locked_hint |
That’s a shame. Let’s hope xss-lock finds someone who’s interested in maintaining it. |
I am interested in this, too. Because tools, such as screenkey could make use of such a DBus event, too. Is there any update on this? |
Does i3 currently have an unlock event? I keep losing my Pulseaudio config on lock and need to restart it every time. |
It does not, but your issue sounds very much unrelated to screen locking and should probably be addressed differently anyway. |
If you want to run commands when i3lock exits, just wrap |
What's the purpose of the |
The It might not be strictly necessary in this particular form of the shell script, but I consider it good practice (see “defensive programming”), in particular for scripts that people might reasonably modify to become more complex. |
I'm submitting a…
Current Behavior
It seems like neither
i3
nori3lock
emit alock
event.Expected Behavior
It would be great if
i3lock
/i3
could emit alock
event on screen lock that would allow other applications to capture and act upon it.Environment
Output of
i3lock --version
:$ uname -a Linux arch-usb 5.2.0-arch2-1-ARCH #1 SMP PREEMPT Mon Jul 8 18:18:54 UTC 2019 x86_64 GNU/Linux
Related
This originally came from keepassxreboot/keepassxc#3339 - a password manager could lock it's database on screenlock, but that currently doesn't seem possible with
i3
/i3lock
, since there's nolock
event (correct me if I'm wrong).I'm sure there'd be more use cases:)
The text was updated successfully, but these errors were encountered: