swaylock-plugin(1)

πŸ“¦
version 1.8.7 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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 the WAYLAND_SOCKET environment 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 variables SWAYLOCK_PLUGIN_OUTPUT_NAME and SWAYLOCK_PLUGIN_OUTPUT_DESC, the values of the compositor’s wl_output::name and wl_output::description for 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, and SYSCONFDIR/swaylock/config. All flags aside from this one are valid options in the configuration file using the format long-option=value. For options such as ignore-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 signal SIGUSR2 is 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 inf prevents unlocking by mouse entirely. The default value is 10. πŸ–±οΈ
  • -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 -c to 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 the show-keyboard-layout option 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. Use solid_color to 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 -i is 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 is 50. β­•
  • --indicator-thickness <thickness> β€” sets the indicator thickness. The default value is 10. 🍩
  • --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 been swaylock-plugin(1) from the General Commands Manual, dated 1980-01-01. stay locked and slay, bestie βœ¨πŸ’…
πŸ“¦ where this page comes from