fix shutdown script
This commit is contained in:
		
							parent
							
								
									2f345011a0
								
							
						
					
					
						commit
						7533926897
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -5,11 +5,11 @@ respond="$(echo " Shutdown\n Restart\n Cancel" | fuzzel --dmenu --lines=3 --widt
 | 
				
			||||||
if [ $respond = ' Shutdown' ] 
 | 
					if [ $respond = ' Shutdown' ] 
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    echo "shutdown"
 | 
					    echo "shutdown"
 | 
				
			||||||
	# shutdown now    
 | 
						shutdown now    
 | 
				
			||||||
elif [ $respond = ' Restart' ] 
 | 
					elif [ $respond = ' Restart' ] 
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    echo "restart"
 | 
					    echo "restart"
 | 
				
			||||||
    # reboot
 | 
					    reboot
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    notify-send "cancel shutdown"
 | 
					    notify-send "cancel shutdown"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue