commands.sh

swaylock

all

Screen locking utility for Wayland compositors.

More info →

Options (7)

-c, --colorboolean

Lock the screen with a simple color background (`rrggbb` format)

Example: swaylock {{[-c|--color]}} {{0000ff}}
-i, --imageboolean

Lock the screen with a background image

Example: swaylock {{[-i|--image]}} {{path/to/image}}
-u, --no-unlock-indicatorboolean

Lock the screen and disable the unlock indicator (removes feedback on keypress)

Example: swaylock {{[-u|--no-unlock-indicator]}}
-f, --daemonizeboolean

Detach from the controlling terminal after locking (like `i3lock`)

Example: swaylock {{[-f|--daemonize]}}
-t, --tilingboolean

Lock the screen with a background image tiled over all monitors

Example: swaylock {{[-i|--image]}} {{path/to/image}} {{[-t|--tiling]}}
-F, --show-failed-attemptsboolean

Lock the screen and show the number of failed login attempts

Example: swaylock {{[-F|--show-failed-attempts]}}
-C, --configboolean

Load the configuration from a specific file

Example: swaylock {{[-C|--config]}} {{path/to/config}}

Examples (8)

Lock the screen using the config in `$HOME/.swaylock/config` or `$XDG_CONFIG_HOME/swaylock/config`

Lock the screen with a simple color background (`rrggbb` format)

swaylock [-c|--color] 0000ff

Lock the screen with a background image

swaylock [-i|--image] path/to/image

Lock the screen and disable the unlock indicator (removes feedback on keypress)

swaylock [-u|--no-unlock-indicator]

Detach from the controlling terminal after locking (like `i3lock`)

swaylock [-f|--daemonize]

Lock the screen with a background image tiled over all monitors

swaylock [-i|--image] path/to/image [-t|--tiling]

Lock the screen and show the number of failed login attempts

swaylock [-F|--show-failed-attempts]

Load the configuration from a specific file

swaylock [-C|--config] path/to/config
made by @shridhargupta | data from tldr-pages