Razor Screenlocker

119 views
Skip to first unread message

Alec Moskvin

unread,
Apr 15, 2013, 10:52:03 PM4/15/13
to razo...@googlegroups.com
Hi all,

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
XScreenSaver.

Additional features:
- 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
it).
- 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:

[General]
LockCommand=i3lock -n
IdleTimeoutSecs=300

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
running)
* 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.

Thanks,
Alec

Petr Vanek

unread,
Apr 16, 2013, 5:14:47 AM4/16/13
to razo...@googlegroups.com
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...

Alec Moskvin

unread,
Apr 16, 2013, 7:14:05 AM4/16/13
to razo...@googlegroups.com
On Tuesday 16 April 2013 11:14:47, Petr Vanek wrote:
> and one more what should be updated: razorqt/screensaver.h class should
> use this one instead of xdg-screensaver (I think).

Yes, though the org.freedesktop.ScreenSaver interface (see TODO point 2)

> Also some default values for wrapped binary would be great...

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.

chri...@surlykke.dk

unread,
Jul 27, 2013, 5:05:26 AM7/27/13
to razo...@googlegroups.com
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.

br. Chr. 
 
Thanks,
Alec

--
--
You received this message because you are subscribed to the Google
Groups "Razor-qt" group.
For more options, visit this group at
http://groups.google.com/group/razor-qt?hl=en

---
You received this message because you are subscribed to the Google Groups "Razor-qt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to razor-qt+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages