Options (7)
-c, --colorbooleanLock the screen with a simple color background (`rrggbb` format)
swaylock {{[-c|--color]}} {{0000ff}}-i, --imagebooleanLock the screen with a background image
swaylock {{[-i|--image]}} {{path/to/image}}-u, --no-unlock-indicatorbooleanLock the screen and disable the unlock indicator (removes feedback on keypress)
swaylock {{[-u|--no-unlock-indicator]}}-f, --daemonizebooleanDetach from the controlling terminal after locking (like `i3lock`)
swaylock {{[-f|--daemonize]}}-t, --tilingbooleanLock the screen with a background image tiled over all monitors
swaylock {{[-i|--image]}} {{path/to/image}} {{[-t|--tiling]}}-F, --show-failed-attemptsbooleanLock the screen and show the number of failed login attempts
swaylock {{[-F|--show-failed-attempts]}}-C, --configbooleanLoad the configuration from a specific file
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] 0000ffLock the screen with a background image
swaylock [-i|--image] path/to/imageLock 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