swaylock-plugin(1)
π
swaylock-plugin(1) β your Wayland screen locker bestie π
okay so gather round, because this is the manual for swaylock-plugin(1), and it is lowkey iconic. It locks your Wayland session, and it has opinions about backgrounds. Letβs go. π«Ά
πΈ NAME πΈ
swaylock-plugin β screen locker for Wayland. Thatβs the whole gig, bestie. It locks your Wayland session. Periodt. π
β¨ SYNOPSIS β¨
swaylock-plugin [options...]
Locks your Wayland session. Thatβs it, thatβs the job. π
π OPTIONS π
--command <cmd>β tells it which program draws the background. That program has to promptly provide a full-size background layer surface for each Wayland output. It gets a Wayland connection through theWAYLAND_SOCKETenvironment variable, and it will be restarted if it closes that connection. no cap, thatβs the deal. π--command-each <cmd>β same energy as--command, except the program is executed once for each output. Each instance only sees a single output, and thatβs the one it should provide a surface for. Each instance also gets, through the environment variablesSWAYLOCK_PLUGIN_OUTPUT_NAMEandSWAYLOCK_PLUGIN_OUTPUT_DESC, the values of the compositorβswl_output::nameandwl_output::descriptionfor that instanceβs output. iykyk. π¦-C,--config <path>β the config file to use. By default, these paths are checked:$HOME/.swaylock/config,$XDG_CONFIG_HOME/swaylock/config, andSYSCONFDIR/swaylock/config. All flags aside from this one are valid options in the configuration file using the formatlong-option=value. For options such asignore-empty-password, just supply the long-option. All leading dashes should be omitted, and the equals sign is required for flags that take an argument. For example:
image=/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_768x1024.png
scaling=center
show-failed-attempts
ring-color=#ff00ff
-d,--debugβ enable debugging output. π-e,--ignore-empty-passwordβ when an empty password is provided, do not validate it. π-F,--show-failed-attemptsβ show current count of failed authentication attempts. π-f,--daemonizeβ detach from the controlling terminal after locking.
Note: this is the default behavior of i3lock. π
--grace <time>β set the duration after program start in which one can unlock the screen with just a keypress or by moving the mouse far enough (configurable with--pointer-hysteresis). The βgrace periodβ automatically ends when the system is about to sleep or when the signalSIGUSR2is received. By default there is no grace period. π°οΈ--pointer-hysteresis <distance>β specifies the minimum distance the mouse must move in a one-second period to unlock the screen during the grace period. Units are in logical pixels, and setting--pointer-hysteresis infprevents unlocking by mouse entirely. The default value is10. π±οΈ-R,--ready-fd <fd>β file descriptor to send readiness notifications to. When the session has been locked, a single newline is written to the FD. At this point, the compositor guarantees that no security sensitive content is visible on-screen. security girlie behavior fr fr. π-h,--helpβ show help message and quit. π«Ά-v,--versionβ show the version number and quit. β
π APPEARANCE π
-u,--no-unlock-indicatorβ disable the unlock indicator. bye-bye little circle. π-i,--image [[<output>]:]<path>β display the given image, optionally only on the given output. Use-cto set a background color. If the path potentially contains a':', prefix it with another':'to prevent interpreting part of it as<output>. π-k,--show-keyboard-layoutβ display the current xkb layout while typing. πΈ-K,--hide-keyboard-layoutβ force hiding 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β disable the Caps Lock text. π-l,--indicator-caps-lockβ show the current Caps Lock state also on the indicator. π-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]>β turn 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. bye bestie πSIGUSR2β if a grace period is used, end it immediately and require authentication to unlock. no more freebies. π
π 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. π
π cute sign-off: this has beenswaylock-plugin(1)from the General Commands Manual, dated1980-01-01. stay locked and slay, bestie β¨π
π¦ where this page comes from
- nixpkgs unstable: swaylock-plugin 1.8.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms