add swaylock as lock
This commit is contained in:
		
							parent
							
								
									c7381b3825
								
							
						
					
					
						commit
						72ffafa5d9
					
				
					 4 changed files with 25 additions and 0 deletions
				
			
		| 
						 | 
					@ -173,6 +173,7 @@ window-rule {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
binds {
 | 
					binds {
 | 
				
			||||||
    Super+V { spawn "bash" "-c" "cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"; }
 | 
					    Super+V { spawn "bash" "-c" "cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"; }
 | 
				
			||||||
 | 
					    Super+Shift+L { spawn "bash" "-c" "swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --grace 2 --fade-in 0.5"; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    Mod+Shift+Slash { show-hotkey-overlay; }
 | 
					    Mod+Shift+Slash { show-hotkey-overlay; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -27,6 +27,7 @@
 | 
				
			||||||
      ./kvm.nix
 | 
					      ./kvm.nix
 | 
				
			||||||
      ./atuin.nix
 | 
					      ./atuin.nix
 | 
				
			||||||
      ./swaync.nix
 | 
					      ./swaync.nix
 | 
				
			||||||
 | 
					      ./swaylock.nix
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,6 +35,7 @@ in
 | 
				
			||||||
      wluma.enable = true;
 | 
					      wluma.enable = true;
 | 
				
			||||||
      waybar.enable = true;
 | 
					      waybar.enable = true;
 | 
				
			||||||
      swaync.enable = true;
 | 
					      swaync.enable = true;
 | 
				
			||||||
 | 
					      swaylock.enable = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    programs.niri = {
 | 
					    programs.niri = {
 | 
				
			||||||
      config = builtins.readFile cfg.config;
 | 
					      config = builtins.readFile cfg.config;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										22
									
								
								home/modules/swaylock.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								home/modules/swaylock.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,22 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  cfg = config.youthlic.programs.swaylock;
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options = {
 | 
				
			||||||
 | 
					    youthlic.programs.swaylock = {
 | 
				
			||||||
 | 
					      enable = lib.mkEnableOption "swaylock";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					  config = lib.mkIf cfg.enable {
 | 
				
			||||||
 | 
					    programs.swaylock = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      package = pkgs.swaylock-effects;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue