Swaylock: Difference between revisions
Appearance
Add Swaylock |
Add Configuration |
||
Line 14: | Line 14: | ||
security.pam.services.swaylock = {}; | security.pam.services.swaylock = {}; | ||
}} | }} | ||
== Configuration == | |||
swaylock can be configured using [[Home Manager]]: | |||
{{file|~/.config/home-manager/home.nix|nix|3= | |||
programs.swaylock.settings = {}; | |||
}} | |||
Alternatively, you may write configuration without using Nix language: | |||
{{file|~/.config/home-manager/home.nix|nix|3= | |||
xdg.configFile."swaylock/config" = ./swaylock | |||
}} | |||
You may find "Swaylock theme"s shared on the web. | |||
== Forks == | == Forks == |
Revision as of 13:27, 4 July 2025
swaylock is a screen locking utility for Wayland compositors.
Installation
Install via Home Manager:
❄︎ ~/.config/home-manager/home.nix
programs.swaylock.enable = true;
The following settings may be required.
❄︎ /etc/nixos/configuration.nix
security.pam.services.swaylock = {};
Configuration
swaylock can be configured using Home Manager:
❄︎ ~/.config/home-manager/home.nix
programs.swaylock.settings = {};
Alternatively, you may write configuration without using Nix language:
❄︎ ~/.config/home-manager/home.nix
xdg.configFile."swaylock/config" = ./swaylock
You may find "Swaylock theme"s shared on the web.
Forks
swaylock-effects
allows built-in screenshots and image manipulation effects like blurring.
❄︎ ~/.config/home-manager/home.nix
programs.swaylock.package = pkgs.swaylock-effects;