登录 注册
开发者工具 screenlockerwaylandwayland-clientzig
470
Stars
23
Forks
4
Watchers
1
Open Issues
ISC
许可证
Zig
语言
2019-12-12
创建时间
2026-11-10
最近更新

项目能做什么

轻量且安全的 Wayland 锁屏工具。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# waylock

Waylock is a small screenlocker for Wayland compositors implementing
`ext-session-lock-v1`. The `ext-session-lock-v1` protocol is significantly
more robust than previous client-side Wayland screen locking approaches.
Importantly, the screenlocker crashing does not cause the session to be
unlocked.

Install from your [package manager](https://repology.org/project/waylock/versions)

The main repository is on [codeberg](https://codeberg.org/ifreund/waylock),
which is where the issue tracker may be found and where contributions are accepted.

Read-only mirrors exist on [sourcehut](https://git.sr.ht/~ifreund/waylock)
and [github](https://github.com/ifreund/waylock).

## Building

Note: If you are packaging waylock for distribution, see [PACKAGING.md](PACKAGING.md).

To compile waylock first ensure that you have the following dependencies
installed:

- [zig](https://ziglang.org/download/) 0.17.1
- wayland
- wayland-protocols
- xkbcommon
- pam
- pkg-config
- scdoc (optional, but required for man page generation)

Then run, for example:

```
zig build -Doptimize=ReleaseSafe --prefix /usr install
```

Note that the configuration file is installed to `$prefix/lib/pam.d`.
PAM searches the vendor directory `/usr/lib/pam.d` (or `/usr/local/lib/pam.d`
when installing with `--prefix /usr/local`) in addition to the administrator
override directory `/etc/pam.d`. Therefore care must be taken if installing
to a prefix other than `/usr` or `/usr/local` to ensure the configuration file
[pam.d/waylock](pam.d/waylock) is found by PAM.

## Usage

See the `waylock(1)` man page or the output of `waylock -h` for an overview
of the command line options.

Run the waylock executable to lock the session. All monitors will be blanked
with the `-init-color`. Typing causes the color to change to the
`-input-color`. `Esc` or `Ctrl-U` clears all current input, while `backspace`
deletes the last UTF-8 codepoint.

To unlock the session, type your password and press `Enter`. If the password
is correct, waylock will unlock the session and exit. Otherwise, the color
will change to the `-fail-color` and you may try again.

In order to automatically run waylock after a certain amount of time with no
input or before sleep, the [swayidle](https://github.com/swaywm/swayidle)
utility or a similar program may be used. See the `swayidle(1)` man page
for details.

## Licensing

Waylock is released under the ISC License.
阅读完整原文

项目深度分析 AI 生成

企业级 Linux 终端安全锁屏套件(定制与集成服务)

产品构想基于 waylock 的高安全性协议架构,扩展支持企业认证标准(如 PAM 扩展模块、FIDO2/WebAuthn 硬件密钥、智能卡/PKCS#11),为部署 Wayland 的企业提供安全桌面锁屏集成。
核心功能FIDO2 物理硬件解锁、PAM 集中认证增强、锁屏尝试审计日志上报、企业合规锁屏背景与强制策略下发。
目标用户采用 Linux 办公的高安全企业、金融机构研发部门、政府合规 Linux 桌面运维团队。
难度/周期高 · 3-6 个月 · 成本:极低(主要是开发工时与各类硬件测试设备采购)
收费模式企业定制开发费、技术支持订阅合同(SLA)、集成部署咨询服务。
竞争风险Wayland 在政企桌面普及率目前仍然较低;企业通常倾向于整套桌面发行版(如 RedHat/Ubuntu)自带的 GDM/GNOME 方案,小众窗口管理器锁屏市场极度狭窄。
依据 AI推测

极客桌面生态赞助与高级扩展维护(开源赞助/咨询)

产品构想围绕 Zig 语言在 Linux 系统工具层面的应用,通过维护该生态工具建立开发者个人品牌,接受 Github Sponsors/Open Collective 资助,或承接 Zig 系统级开发咨询。
核心功能定期更新协议支持、性能与内存安全优化、多输出设备色彩与个性化渲染插件支持。
目标用户Zig 语言爱好者、Wayland 极客用户、开源项目赞助机构。
难度/周期中等 · 持续运营 · 成本:极低
收费模式平台打赏/开源赞助(GitHub Sponsors/Liberapay)、技术咨询对接。
竞争风险赞助金额通常极低,无法作为稳定商业收入支撑个人全职开发。
依据 已验证事实

专用设备/信息亭(Kiosk)模式安全锁定解决方案

产品构想利用 waylock 崩溃不解锁的底层优势,封装为工业工控机、ATM机、展示屏(Kiosk)等专用 Wayland 环境下的应急安全锁定与认证代理。
核心功能无图形桌面依赖的守护进程管理、看门狗重启联动、工业总线/硬件开关触发锁定与解锁机制。
目标用户嵌入式 Linux 解决方案商、工控系统集成商、自服务终端软件厂商。
难度/周期高 · 4-8 个月 · 成本:中等(需工业硬件或测试开发板)
收费模式软件专有模块授权费、系统定制集成解决方案交付费。
竞争风险嵌入式领域对引入新语言 Zig 构建的关键组件接受度尚需验证;专用设备市场销售周期长、决策链复杂。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2019-12-12,近 30 天仍在推送,发布过 18 个 Release
社区活跃Star 470 / Fork 23 / Issue 1(数据支持,可自行核实)
许可证ISC
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。