mirror of
				https://github.com/tiyn/slock.git
				synced 2025-10-30 18:51:19 +01:00 
			
		
		
		
	added secret-password patch for config
This commit is contained in:
		
							
								
								
									
										11
									
								
								config.def.h
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								config.def.h
									
									
									
									
									
								
							| @@ -37,3 +37,14 @@ static XRectangle rectangles[12] = { | ||||
|  | ||||
| /* allow control key to trigger fail on clear */ | ||||
| static const int controlkeyclear = 1; | ||||
|  | ||||
| /* length of entries in scom */ | ||||
| static const int entrylen = 1; | ||||
|  | ||||
| struct secretpass { | ||||
|   char const *pass; | ||||
|   char const *command; | ||||
| } scom = { | ||||
| /*	 Password				command */ | ||||
|   "shutdown",           "sudo shutdown -h now" | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user