Fix auto unlock gpg
This commit is contained in:
		
							parent
							
								
									7509584630
								
							
						
					
					
						commit
						b130c3fc4d
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
pkgs.writeShellScriptBin "_gpg-unlock" ''
 | 
					pkgs.writeShellScriptBin "_gpg-unlock" ''
 | 
				
			||||||
  ${pkgs.gnupg}/bin/gpg-connect-agent reloadagent /bye
 | 
					  ${pkgs.gnupg}/bin/gpg-connect-agent reloadagent /bye
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  set -xe
 | 
					  set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test -f "$HOME/.config/.preset-password" || {
 | 
					  test -f "$HOME/.config/.preset-password" || {
 | 
				
			||||||
    notify-send "No preset password found"
 | 
					    notify-send "No preset password found"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,9 +28,10 @@
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        Timer = {
 | 
					        Timer = {
 | 
				
			||||||
          OnBootSec = "0";
 | 
					          OnBootSec = "0";
 | 
				
			||||||
          OnUnitActiveSec = "30";
 | 
					          OnUnitActiveSec = "300";
 | 
				
			||||||
          Unit = "gpg_unlock.service";
 | 
					          Unit = "gpg_unlock.service";
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					        Install = { WantedBy = [ "sway-session.target" ]; };
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue