|Razor Screenlocker||Alec Moskvin||4/15/13 7:52 PM|
As Petr requested, I committed my work-in-progress version of
razor-screenlocker, a program to automatically lock the screen after a
period of inactivity with a lock command of choice (such as xlockmore,
i3lock, slock, alock or xtrlock). It's intended as an alternative to
- org.freedesktop.ScreenSaver interface: allows applications such as
movie players to inhibit screen locking. This is followed mainly by
KDE applications, but GNOME recently adopted the interface so the
number of applications using it will increase (e.g. VLC 2.1 will use
- Optionally turns off display when screen is locked.
It's currently lacking a configuration interface and it does not
integrate nicely with everything else, so it's disabled by default.
To enable it, run:
cmake [...] -DMODULE_SCREENLOCKER=On
Here's an example .config/razor/razor-screenlocker.conf:
Here's a brief list of things that still need to be done:
- Add configuration. The configuration should offer an option to use
XScreenSaver if it's installed. The autostart entries can be managed
with the RazorAutostartEntry class.
- Make locking work from the menu and other places. My idea is to redo
razorqt/Screensaver.cpp so that it does not use xdg-screensaver but
instead tries to lock in the following order:
* Try org.freedesktop.ScreenSaver /ScreenSaver Lock first
* Then try xscreensaver-command -lock (in case xscreensaver is
* Launch the command specified in razor-screenlocker.conf.
- Create a proper FindXCB.cmake to find the XCB libraries
- Verify that the D-Bus interface does what it's supposed to. (There's
not complete spec for it.)
I do intend to finish these eventually, but I currently don't have much
time. So if someone want to pick up any of these, feel free - just be
sure to tell me so that there isn't duplication of effort.
|Re: [razor-qt] Razor Screenlocker||Petr Vanek||4/16/13 2:14 AM|
and one more what should be updated: razorqt/screensaver.h class should
use this one instead of xdg-screensaver (I think).
Also some default values for wrapped binary would be great...
|Re: [razor-qt] Razor Screenlocker||Alec Moskvin||4/16/13 4:14 AM|
On Tuesday 16 April 2013 11:14:47, Petr Vanek wrote:Yes, though the org.freedesktop.ScreenSaver interface (see TODO point 2)
I was thinking of putting it in the configuration interface, since with
the exception of xlockmore, not a single other lock program tells you to
enter a password, making it not obvious that the screen is locked...
(And I have reason to believe that xlockmore might depend on Gtk+ in
some distros, although I haven't checked.)
If there is no lock program specified, it pops up a notification with an
option to open the configuration.
|Re: [razor-qt] Razor Screenlocker||Christian Surlykke||7/27/13 2:05 AM|
I'd like to continue work on razor-screenlocker. Work on it will happen within lxde-qt. I'll attack Alec's todo-list top-down.