Skip to content

abchlli/glock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glock

Imagine slock, but GNU.

Behaves like slock, but supports images (without patches) and tries to be secure1.

Usage

Lock your screen!

glock
Usage: glock [OPTION...] [COMMANDS...]
Glock (GNU lock) -- X11 lockscreen

  -c, --color=HEX            Hex formatted solid color (default: #000000)
  -g, --group=GROUP          Group to drop privileges to (defaults: $USER)
  -i, --image=PATH           Background image path (support: imlib2 formats)
  -t, --center               Center image (default: maximized)
  -u, --user=USER            Username to drop privileges to (defaults: $USER)
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Use ctrl+u to clean the current input.

Tip

Lock your screen with a random image:
glock --image $(shuf -n 1 -e ~/image/*.png -e ~/image/*.jpg)

Tip

Automatically lock your screen and open firefox when you unlock it: xautolock -time 15 -locker "glock firefox" -detectsleep

Build

  1. Install the dependencies
# On Void Linux
sudo xbps-install \
    make \
    gcc \
    libsanitizer-devel \
    glibc-devel \
    imlib2-devel \
    libX11-devel \
    libXcursor-devel \
    libXext-devel \
    libXfixes-devel \
    libXinerama-devel \
    libXrandr-devel \
    libXrender-devel
  1. Run
make # development (includes debug symbols and sanitization)
make release # release (no debug stuff and anti-debug features)

Install

sudo make install

Uninstall

sudo make uninstall

Footnotes

  1. You can't pkill glock from another user and you can't reduce the number of incorrect password by looking at the wrong flashing color.

About

Imagine slock, but GNU.

Topics

Resources

License

Stars

Watchers

Forks

Contributors