Fork of swaylock for use on Linux Phones https://slatecave.net/creations/swaylock-mobile/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Slatian aa5387b822 Apparantly the wl_output instead of zxdg_output patch wasn't finished 2 months ago
completions bash-completion: localize variables 2 months ago
include Drop xdg-output requirement 2 months ago
pam Remove FreeBSD-specific PAM configuration 3 years ago
.build.yml Remove references to pango 3 years ago
.editorconfig Add editorconfig 8 months ago
.gitignore Manually applied [PATCH 3/5] Delete whole utf8 character on backspace 2 months ago
LICENSE MIT license 4 years ago
README.md Updated README 4 months ago
background-image.c background-image.c: remove stdbool header 3 years ago
cairo.c Remove unused functions in common code 4 years ago
comm.c Check password without blocking 4 years ago
log.c Implement logging and remove wlroots dependency 4 years ago
loop.c Check for poll errors 11 months ago
main.c Apparantly the wl_output instead of zxdg_output patch wasn't finished 2 months ago
meson.build wayland-scanner: use native version to support cross-compilation 2 months ago
meson_options.txt Set version in project file 3 years ago
pam.c refresh pam credentials after successful authentication 2 years ago
password.c Manually applied [PATCH 3/5] Delete whole utf8 character on backspace 2 months ago
pool-buffer.c pool-buffer: handle zero-sized buffers 1 year ago
render.c Properly center text 4 months ago
seat.c First working version with keypad 4 months ago
shadow.c Merge pull request #36 from c-edw/feature/ShadowBackendSleep 3 years ago
sway_test_config Fixed the worst alignment issues 4 months ago
swaylock.1.scd Added --indicator-x/y-position 2 years ago
unicode.c Manually applied [PATCH 3/5] Delete whole utf8 character on backspace 2 months ago
wlr-input-inhibitor-unstable-v1.xml Convert swaylock into standalone project 4 years ago
wlr-layer-shell-unstable-v1.xml Fix some typos 1 year ago

README.md

swaylock

swaylock is a screen locking utility for Wayland compositors. It is compatible with any Wayland compositor which implements the following Wayland protocols:

  • wlr-layer-shell + wlr-input-inhibitor, or ext-session-lock-v1
  • xdg-output

See the man page, swaylock(1), for instructions on using swaylock.

Changes from upstream

  • Added a flat indicator style that is a better fit for touchscreens
  • Added a keypad for entering numeric pins (currently with fixed layout)

The file sway_test_config can be used for trying out the new features, it will contains the command a new feature was mainly tested with.

Installation

From Packages

Swaylock is available in many distributions. Try installing the "swaylock" package for yours.

Compiling from Source

Install dependencies:

  • meson *
  • wayland
  • wayland-protocols *
  • libxkbcommon
  • cairo
  • gdk-pixbuf2 **
  • pam (optional)
  • scdoc (optional: man pages) *
  • git *

* Compile-time dep
** Optional: required for background images other than PNG

Run these commands:

meson build
ninja -C build
sudo ninja -C build install

On systems without PAM, you need to suid the swaylock binary:

sudo chmod a+s /usr/local/bin/swaylock

Swaylock will drop root permissions shortly after startup.