mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 01:16:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			562 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			562 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
action="$(printf 'Quit WM\nLock session\nLogout\nLock TTYs\nPoweroff\nReboot\nUserspace Reboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)"
 | 
						|
 | 
						|
case "$action" in
 | 
						|
"Quit WM")
 | 
						|
  hyprctl dispatch exit ""
 | 
						|
  ;;
 | 
						|
"Lock session")
 | 
						|
  loginctl lock-session
 | 
						|
  ;;
 | 
						|
"Logout")
 | 
						|
  loginctl terminate-user "$USER"
 | 
						|
  ;;
 | 
						|
"Lock TTYs")
 | 
						|
  physlock
 | 
						|
  ;;
 | 
						|
"Poweroff")
 | 
						|
  systemctl poweroff
 | 
						|
  ;;
 | 
						|
"Reboot")
 | 
						|
  systemctl reboot
 | 
						|
  ;;
 | 
						|
"Userspace Reboot")
 | 
						|
  systemctl soft-reboot
 | 
						|
  ;;
 | 
						|
"Hibernate")
 | 
						|
  systemtcl hibernate
 | 
						|
  ;;
 | 
						|
"Nothing") ;&
 | 
						|
*)
 | 
						|
  exit 1
 | 
						|
  ;;
 | 
						|
esac
 |