Sweets

Introduction

A small, fast screen locker for Wayland

sweetlock lock screen

sweetlock is a small screen locker for Wayland, built for Sweets. It is one C binary that locks through ext-session-lock-v1 and checks your password with PAM. It runs on Linux and FreeBSD.

  • Covers every output the moment it starts. Fonts and images come after
  • Clock, date, avatar, username, and a password field
  • Solid, gradient, radial, layered, or image backgrounds with dim and blur
  • Backgrounds are cached, so the next lock is one file read
  • Sharp text at every scale, fractional ones too
  • Fingerprint, security keys, and lockout messages through PAM
  • Turns the screens off while locked
  • Returns once locked with -f, for idle and sleep hooks