LinuxCommandLibrary

swaylock

Screen locking utility for Wayland compositors.

TLDR

Lock the screen showing a white background

$ swaylock
copy


Lock the screen with a simple color background (rrggbb format)
$ swaylock --color [0000ff]
copy


Lock the screen to a PNG background
$ swaylock --image [path/to/file.png]
copy


Lock the screen and disable the unlock indicator (removes feedback on keypress)
$ swaylock --no-unlock-indicator
copy


Lock the screen and don't hide the mouse pointer
$ swaylock --pointer [default]
copy


Lock the screen to a PNG background tiled over all monitors
$ swaylock --image [path/to/file.png] --tiling
copy


Lock the screen and show the number of failed login attempts
$ swaylock --show-failed-attempts
copy


Load configuration from a file
$ swaylock --config [path/to/config]
copy

Copied to clipboard