跳到正文
发现
Veila:Wayland 屏幕锁
桌面应用效率工具

Veila:Wayland 屏幕锁

面向 Wayland 合成器的安全、优雅、快速屏幕锁定工具,支持多显示器与主题定制。

admin
发布于 2026-11-10 · 更新于 2026-11-26
浏览
7
访问
0
下载
0
Stars
100
版本
v0.6.0
平台
Linux
该作品还没有经过官方审核。访问演示、下载或复制命令前,请自行确认来源可信。

详细介绍

项目简介

Veila 是一款面向 Wayland 合成器的屏幕锁定工具,使用 Rust 编写,强调安全、优雅与快速。它不依赖重量级的桌面 UI 工具包,提供干净精致的锁屏界面,并通过 config.toml 完成配置。

主要功能

  • 快速、安全的锁定,界面干净精致
  • 多显示器支持
  • 通过 config.toml 简单配置
  • 内置主题,并支持自定义主题
  • 时钟、密码框、颜色、字体等样式灵活可调
  • 小组件:天气、电池、正在播放、键盘布局、Caps Lock、头像与用户名
  • 纯色背景、壁纸背景,并支持按显示器单独覆盖背景
  • 预览模式,可将锁屏渲染为 PNG,便于截图和调整主题
  • 轻量设计,不依赖沉重的桌面 UI 工具包

安装与使用

Arch Linux 可从 AUR 安装:

yay -S veila-bin

也可以安装最新的 git 构建:yay -S veila-git。

首次启动时锁定屏幕:

veila lock

NixOS 方面,Nixpkgs 中提供 v0.4.0 版本,可将其加入 environment.systemPackages 并配置所需的 PAM 服务:

security.pam.services.veila = {};

Flake 安装(v0.5.0)与 Home Manager 的用法详见官方文档。也可以直接安装:

nix profile install github:naurissteins/Veila#veila

完整的安装、配置与主题说明请访问:https://naurissteins.com/veila

注意事项

使用 Home Manager 时无法配置 PAM,需要在系统(NixOS)配置中补上一行 security.pam.services.veila = {};,才能使用密码解锁。


本作品整理自 GitHub 开源项目 naurissteins/Veila,原作者 @naurissteins,许可证 GPL-3.0。中文介绍由 AI 根据项目 README 整理,以原仓库为准。

更新记录

  1. v0.6.0当前版本

    ## Features - Added muted, looping video backgrounds on the primary lock screen. Set `background.video_path` - Added two bundled themes, [Neon](https://naurissteins.com/veila/docs/themes/neon) and [Dusk](https://naurissteins.com/veila/docs/themes/dusk) - Redesigned the bundled [Boracay](https://naurissteins.com/veila/docs/themes/boracay) theme ## Fixes - Fixed battery-only auto-suspend triggering on AC power - Fixed partially entered passwords carrying over across suspend and resume - Fixed display power recovery after the lock screen process restarts - Fixed a race where `veila status` could interfere with starting a lock - Fixed fresh weather data being discarded when writing the cache failed - Fixed image-loading failures during startup - Fixed jagged rounded borders, ignored battery icon opacity - Fixed log rotation during long-running lock sessions ## Other - Reduced lock screen pop-in by loading cached wallpapers, theme fonts, weather, now-playing details

  2. v0.5.0

    新增无需常驻服务的 veila lock、可选 veila idle 空闲与睡前锁定、交互式 PAM 提示、更强壁纸模糊、指纹尝试次数上限、veila preview 预览命令,并修复指纹恢复、组件重叠与配置写入等问题。

评论