|  | #!/bin/bash | 
						
						
							|  |  | 
						
						
							|  | option=$(echo -e "Lock the screen\nReboot\nShutdown\nHibernate" | dmenu -i -m 0 -fn "Inconsolata:size=10" -nb "#000000" -nf "#bbbbbb" -sb "#0099cc" -sf "#000000" -p "Power menu: ") | 
						
						
							|  | 
 | 
						
						
							|  | answer=$(echo -e "No\nYes" | dmenu -i -m 0 -fn "Inconsolata:size=10" -nb "#000000" -nf "#bbbbbb" -sb "#0099cc" -sf "#000000" -p "Would you like to ${option} now? ") | 
						
						
							|  | 
 | 
						
						
							|  | 
 | 
						
						
							|  | if [[ ${answer} == "Yes" ]] | 
						
						
							|  | then | 
						
						
							|  | 	if [[ ${option} == "Lock the screen" ]] | 
						
						
							|  | 	then | 
						
						
							|  | 		slock | 
						
						
							|  | 	elif [[ ${option} == "Reboot" ]] | 
						
						
							|  | 	then | 
						
						
							|  | 		systemctl reboot | 
						
						
							|  | 	elif [[ ${option} == "Shutdown" ]] | 
						
						
							|  | 	then | 
						
						
							|  | 		systemctl poweroff | 
						
						
							|  | 	elif [[ ${option} == "Hibernate" ]] | 
						
						
							|  | 	then | 
						
						
							|  | 		systemctl hibernate | 
						
						
							|  | 	fi | 
						
						
							|  | fi | 
						
						
							|  | 
 |