swaylock(1)
π swaylock(1) β the bestie-approved guide π
okay so this is the manual page for swaylock, section 1 of the General Commands Manual. It's the screen locker for Wayland, and honestly? She's iconic. Let's get into it. π
β¨ NAME β¨
swaylock β Screen locker for Wayland πΈ
β¨ SYNOPSIS β¨
swaylock [options...]
Locks your Wayland session. That's the whole job. She locks it. Periodt. π
β¨ OPTIONS β¨
-C,--config <path>β the config file to use. By default, these paths get checked, in order:$HOME/.swaylock/config,$XDG_CONFIG_HOME/swaylock/config, andSYSCONFDIR/swaylock/config. Every single flag except this one is a valid option in the config file, written aslong-option=value. For options likeignore-empty-password, you just supply the long-option, that's it. All the leading dashes get dropped, and the equals sign is required for flags that take an argument. Like so, bestie:
image=/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024.png
scaling=center
show-failed-attempts
ring-color=#ff00ff
-d,--debugβ turns on debugging output. π-e,--ignore-empty-passwordβ if an empty password comes through, don't validate it. π-F,--show-failed-attemptsβ shows the current count of failed authentication attempts. π-f,--daemonizeβ detaches from the controlling terminal after locking.
ngl, note: this is the default behavior of i3lock.
-R,--ready-fd <fd>β the file descriptor to send readiness notifications to. Once the session is locked, a single newline gets written to the FD. At that point, the compositor guarantees that no security sensitive content is visible on-screen. π«Ά-h,--helpβ shows the help message and quits.-v,--versionβ shows the version number and quits.
π APPEARANCE π
this is the section where she serves looks, fr fr
-u,--no-unlock-indicatorβ disables the unlock indicator.-i,--image [[<output>]:]<path>β displays the given image, optionally only on the given output. Use-cto set a background color. If the path might contain a':', prefix it with another':'so part of it doesn't get interpreted as<output>. π-k,--show-keyboard-layoutβ displays the current xkb layout while typing.-K,--hide-keyboard-layoutβ force-hides the current xkb layout while typing, even if more than one layout is configured or theshow-keyboard-layoutoption is set.-L,--disable-caps-lock-textβ disables the Caps Lock text.-l,--indicator-caps-lockβ shows the current Caps Lock state on the indicator too.-s,--scalingβ image scaling mode:stretch,fill,fit,center,tile,solid_color. Usesolid_colorto display only the background color, even if a background image is specified.-t,--tilingβ same as--scaling=tile.-c,--color <rrggbb[aa]>β turns the screen into the given color instead of light gray. If-iis used, this sets the background of the image to the given color. Defaults to light gray (A3A3A3).--bs-hl-color <rrggbb[aa]>β sets the color of backspace highlight segments.--caps-lock-bs-hl-color <rrggbb[aa]>β sets the color of backspace highlight segments when Caps Lock is active.--caps-lock-key-hl-color <rrggbb[aa]>β sets the color of the key press highlight segments when Caps Lock is active.--font <font>β sets the font of the text.--font-size <size>β sets a fixed font size for the indicator text.--indicator-idle-visibleβ sets the indicator to show even if idle.--indicator-radius <radius>β sets the indicator radius. The default value is50.--indicator-thickness <thickness>β sets the indicator thickness. The default value is10.--indicator-x-position <x>β sets the horizontal position of the indicator.--indicator-y-position <y>β sets the vertical position of the indicator.--inside-color <rrggbb[aa]>β sets the color of the inside of the indicator.--inside-clear-color <rrggbb[aa]>β sets the color of the inside of the indicator when cleared.--inside-caps-lock-color <rrggbb[aa]>β sets the color of the inside of the indicator when Caps Lock is active.--inside-ver-color <rrggbb[aa]>β sets the color of the inside of the indicator when verifying.--inside-wrong-color <rrggbb[aa]>β sets the color of the inside of the indicator when invalid.--key-hl-color <rrggbb[aa]>β sets the color of the key press highlight segments.--layout-bg-color <rrggbb[aa]>β sets the background color of the box containing the layout text.--layout-border-color <rrggbb[aa]>β sets the color of the border of the box containing the layout text.--layout-text-color <rrggbb[aa]>β sets the color of the layout text.--line-color <rrggbb[aa]>β sets the color of the line between the inside and ring.--line-clear-color <rrggbb[aa]>β sets the color of the line between the inside and ring when cleared.--line-caps-lock-color <rrggbb[aa]>β sets the color of the line between the inside and ring when Caps Lock is active.--line-ver-color <rrggbb[aa]>β sets the color of the line between the inside and ring when verifying.--line-wrong-color <rrggbb[aa]>β sets the color of the line between the inside and ring when invalid.-n,--line-uses-insideβ use the inside color for the line between the inside and ring.-r,--line-uses-ringβ use the ring color for the line between the inside and ring.--ring-color <rrggbb[aa]>β sets the color of the ring of the indicator when typing or idle.--ring-clear-color <rrggbb[aa]>β sets the color of the ring of the indicator when cleared.--ring-caps-lock-color <rrggbb[aa]>β sets the color of the ring of the indicator when Caps Lock is active.--ring-ver-color <rrggbb[aa]>β sets the color of the ring of the indicator when verifying.--ring-wrong-color <rrggbb[aa]>β sets the color of the ring of the indicator when invalid.--separator-color <rrggbb[aa]>β sets the color of the lines that separate highlight segments.--text-color <rrggbb[aa]>β sets the color of the text.--text-clear-color <rrggbb[aa]>β sets the color of the text when cleared.--text-caps-lock-color <rrggbb[aa]>β sets the color of the text when Caps Lock is active.--text-ver-color <rrggbb[aa]>β sets the color of the text when verifying.--text-wrong-color <rrggbb[aa]>β sets the color of the text when invalid.
π¦ SIGNALS π¦
SIGUSR1β unlock the screen and exit. β¨
π AUTHORS π
Maintained by Drew DeVault <sir@cmpwn.com>, who is assisted by other open source contributors. For more information about swaylock development, see https://github.com/swaywm/swaylock. π«Ά
and that's the whole page, bestie!! this was swaylock(1) from the General Commands Manual, dated 2026-08-21. go lock your screen and slay responsibly ππβ
π¦ where this page comes from
- fedora 43: swaylock 1.8.6-1.fc43 Β· MIT
- fedora 44: swaylock 1.8.6-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms