17 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
action=$(echo -e "Shutdown\nReboot\nLogout" | rofi -dmenu)
 | 
						|
 | 
						|
case "$action" in
 | 
						|
    "Shutdown")
 | 
						|
        systemctl poweroff -i
 | 
						|
        ;;
 | 
						|
    "Reboot")
 | 
						|
        systemctl reboot
 | 
						|
        ;;
 | 
						|
    "Logout")
 | 
						|
        bspc quit
 | 
						|
        ;;
 | 
						|
    *)
 | 
						|
        ;;
 | 
						|
esac
 |