summaryrefslogblamecommitdiff
path: root/home/wayland/modules/sway/swaylock.nix
blob: 1d5a58f39507a0c084e2b6f9fdca8558e050863f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           

                       
                                    


                   

                       

                           
                         
                                    


      
{ config, pkgs, ... }: let
  background = "${config.xdg.dataHome}/wayland/lockscreen";
in {
  programs.swaylock = {
    enable = true;
    package = pkgs.swaylock-effects;

    settings = {
      clock = true;
      daemonize = true;
      color = "404040";
      timestr = "%H:%M";
      datestr = "%a,%e %b";
      image = background;
      indicator-idle-visible = true;
    };
  };
}