LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hyprlock

GPU-accelerated screen locker for Hyprland

TLDR

Lock using the default config search path
$ hyprlock
copy
Lock with an explicit config file
$ hyprlock -c [path/to/hyprlock.conf]
copy
Skip the grace period and require a password immediately
$ hyprlock --grace 0
copy
Disable the fade-in animation
$ hyprlock --no-fade-in
copy
Unlock from another TTY (SIGUSR1)
$ pkill -USR1 hyprlock
copy

SYNOPSIS

hyprlock [options]

DESCRIPTION

hyprlock is Hyprland's multi-threaded, GPU-accelerated session lock. Layout is entirely widget-based (background, input-field, label, image, shape) in hyprlock.conf. Authentication uses PAM (`auth:pam:module`, default hyprlock, falling back to su) and optionally fprintd fingerprints.Config is loaded from the first match of `$XDGCONFIGHOME/hypr/hyprlock.conf`, `~/.config/hypr/hyprlock.conf`, `$XDGCONFIGDIRS/hypr/hyprlock.conf`, then `/etc/xdg/hypr/hyprlock.conf`.ESC, Ctrl+u, and Ctrl+Backspace clear the password buffer. Hyprland binds with flag l still work while locked (volume, brightness). SIGUSR1 unlocks; SIGUSR2 refreshes labels and images.

PARAMETERS

-c, --config file

Config file to use.
--display name
Wayland display to connect to.
--grace seconds
Seconds during which moving the mouse or typing unlocks without a password.
--immediate-render
Draw the background immediately (same as `general:immediate_render`).
--no-fade-in
Skip the fade-in animation.
-v, --verbose
Verbose logging.
-q, --quiet
Disable logging.
-V, --version
Print version and exit.
-h, --help
Show help.

INSTALL

sudo pacman -S hyprlock
copy
sudo zypper install hyprlock
copy
nix profile install nixpkgs#hyprlock
copy

CAVEATS

If no config file is found, hyprlock exits with an error and does not lock. Keep an example config in place. PAM faillock on Arch can impose a 10-minute lockout after three failures (`/etc/security/faillock.conf`). Fingerprint auth needs fprintd. At least one auth method must be enabled.

HISTORY

Part of the Hyprland ecosystem (hyprwm).

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid