Skip to content

j-nikki/slock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slock

Simple screen locker utility for X.

Forked from https://git.suckless.org/slock
Based on patch https://tools.suckless.org/slock/patches/blur-pixelated-screen/

Requirements

You need GCC 12+, CMake 3.20+, and the X extensions XShm, Xinerama, Xrandr.

Installation

  • install:
    cmake -B build -D CMAKE_BUILD_TYPE=Release && cmake --build build && sudo cmake --install build
    note: default prefix (/usr/local) can be overridden with --prefix <dir>
  • uninstall:
    cat build/install_manifest.txt | sudo xargs rm

You might need to modify config.h according to your setup.

Usage

Run slock to lock screen. Type your password and <ENTER> to unlock.