Giter Club home page Giter Club logo

light-locker's Introduction

light-locker
============

light-locker is a simple locker (forked from gnome-screensaver) that aims to have simple, sane, secure defaults and be well integrated with the desktop while not carrying any desktop-specific dependencies.
It relies on lightdm for locking and unlocking your session via ConsoleKit/UPower or logind/systemd.


Requirements
============

To use light-locker with systemd, you need at least lightdm 1.7.0.
light-locker doesn't work with lightdm version 1.7.5-1.7.9


Usage
=====

After installing light-locker, it will auto start along your session and you will be able to lock your session with "light-locker-command -l".
This will redirect you to VT8 (assuming that your open session was on VT7 and is now kept safe by light-locker) and present LightDM's greeter for unlocking your session again.
On suspend/resume light-locker will lock the active session and redirect to the LightDM's greeter for unlocking the session again.
There is no support for gnome-settings-daemon in order to keep things slim, so you might have to add a custom keyboard-shortcut for this to work.
light-locker will automatically lock the session shortly after the X11 screen saver kicks in. The timeout can be set with --lock-after-screensaver. With xset the X11 screen saver can be adjusted.
Use --late-locking to avoid some of the negative effects of VT switching. This will lock the session on the deactivation of X11 screen saver instead of activation.
light-locker will automatically lock the session on suspend/resume. To disable this behaviour with --no-lock-on-suspend.
With --lock-on-lid light-locker will automatically lock the lid close.
With logind sessions can have an idle hint. This is used to perform some action after a timeout. Use --idle-hint to let light-locker set the idle hint, in case nothing else does.


Building
========

light-locker different configurable dependencies and some of these require the development files to be installed.
Most of these configurations will be enabled automatically when their dependencies are available.
Here is a list of the different dependencies and there configuration flags:
  --with-gtk2: This decides between the Gtk+-3.0 and Gtk+-2.0 dependency.
  --with-systemd: This adds the support for systemd logind. This option requires the development files to be installed.
  --with-console-kit: This adds the support for ConsoleKit.
  --with-upower: This adds the support for UPower.
  --with-mit-ext: This enables the lock-after-screensaver feature. This options requires the X11 Screen Saver extension development files to be installed.
  --with-dpms-ext: This adds the support for DPMS. This is used to turn on the display on screen saver deactivation.
Many of the light-locker features can be disabled/enabled and configured at build time. Here is a list of these configuration flag:
  --enable-late-locking: Enables --late-locking and --no-late-locking. Default enabled with --no-late-locking. This requires mit-ext.
  --enable-lock-on-suspend: Enables --lock-on-suspend and --no-lock-on-suspend. Default enabled with --lock-on-suspend. This requires either systemd or upower.
  --enable-lock-on-lid: Enables --lock-on-lid and --no-lock-on-lid. Default enabled with --no-lock-on-suspend. This requires upower.

light-locker's People

Contributors

aklapper avatar bluesabre avatar cavalier38 avatar cgwalters avatar changwoo avatar compnerd avatar dmytro-bit avatar dooteo avatar frandieguez avatar hadess avatar halfline avatar kelemeng avatar khaledhosny avatar luciang avatar matiasdelellis avatar mtelka avatar mtrmac avatar nma-2009 avatar ochosi avatar pclouds avatar pesder avatar piotrdrag avatar pmkovar avatar pwithnall avatar raivisdejus avatar takeshi-aihana avatar urmatej avatar wbolster avatar yarons avatar yeager avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.