Imagine slock, but GNU.
Behaves like slock, but supports images (without patches) and tries to be secure1.
Lock your screen!
glockUsage: 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
- 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- Run
make # development (includes debug symbols and sanitization)
make release # release (no debug stuff and anti-debug features)sudo make installsudo make uninstallFootnotes
-
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. ↩