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.
|
2 months ago | |
---|---|---|
completions | 2 months ago | |
include | 2 months ago | |
pam | 3 years ago | |
.build.yml | 3 years ago | |
.editorconfig | 8 months ago | |
.gitignore | 2 months ago | |
LICENSE | 4 years ago | |
README.md | 4 months ago | |
background-image.c | 3 years ago | |
cairo.c | 4 years ago | |
comm.c | 4 years ago | |
log.c | 4 years ago | |
loop.c | 11 months ago | |
main.c | 2 months ago | |
meson.build | 2 months ago | |
meson_options.txt | 3 years ago | |
pam.c | 2 years ago | |
password.c | 2 months ago | |
pool-buffer.c | 1 year ago | |
render.c | 4 months ago | |
seat.c | 4 months ago | |
shadow.c | 3 years ago | |
sway_test_config | 4 months ago | |
swaylock.1.scd | 2 years ago | |
unicode.c | 2 months ago | |
wlr-input-inhibitor-unstable-v1.xml | 4 years ago | |
wlr-layer-shell-unstable-v1.xml | 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.