Code Monkey home page Code Monkey logo

slock's Introduction

slock - simple screen locker

simple screen locker utility for X.

Requirements

In order to build slock you need the Xlib header files.

Installation

Edit config.mk to match your local setup (slock is installed into the /usr/local namespace by default).

Afterwards enter the following command to build and install slock (if necessary as root):

make clean install

Dwmlogo patch

This build contains the dwmlogo patch (look at the date to see which one is the latest), which instead of using the colors for the whole screen, it draws the dwm logo which changes color based on the state.

Logodwm in combination with other patches

I have not tested the logodwm patch with all other patches, so if there is some incompatibility, make an issue or create a pull request.

Dwmlogo patch conflict with dpms patch

With the dpms patch there is a conflict in the main function. Edit the main function so it looks like this, for it to work properly:

main(int argc, char **argv){
    ...
        XFreeGC(dpy, locks[s]->gc);
    }

    /* reset DPMS values to inital ones */
    DPMSSetTimeouts(dpy, standby, suspend, off);
    XSync(dpy, 0);
    XCloseDisplay(dpy);

    return 0;
}

Running slock

Simply invoke the 'slock' command. To get out of it, enter your password.

slock's People

Contributors

schachmat avatar frign avatar garbeam avatar arieboven avatar phillid avatar hiltjo avatar hexid avatar stoeckmann 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.