mirror of
				https://github.com/librephoenix/nixos-config
				synced 2025-11-04 01:44:00 +05:30 
			
		
		
		
	Fixes before-sleep not locking vulnerability
This commit is contained in:
		
							parent
							
								
									f288702f26
								
							
						
					
					
						commit
						a8f47c5603
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -60,8 +60,8 @@ in
 | 
			
		|||
  # TODO add stylix colors to swaylock cmd
 | 
			
		||||
  home.file.".swayidle-stylix".text = ''
 | 
			
		||||
    #!/bin/sh
 | 
			
		||||
    swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --screenshots --effect-blur 10x10'
 | 
			
		||||
    swayidle -w timeout 300 "$swaylock_cmd --fade-in 0.5" \
 | 
			
		||||
    swaylock_cmd='swaylock --indicator-radius 200 --screenshots --effect-blur 10x10'
 | 
			
		||||
    swayidle -w timeout 300 "$swaylock_cmd --fade-in 0.5 --grace 5" \
 | 
			
		||||
                timeout 600 'hyprctl dispatch dpms off' \
 | 
			
		||||
                resume 'hyprctl dispatch dpms on' \
 | 
			
		||||
                before-sleep "$swaylock_cmd"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue