Files
Hyprland-Config/scripts/powermenu.sh

21 lines
420 B
Bash
Executable File

#!/bin/bash
choice=$(printf " Lock\n Suspend\n󰜉 Reboot\n Shutdown\n Logout" | wofi --dmenu --prompt "Power")
case "$choice" in
" Lock")
hyprlock
;;
" Suspend")
systemctl suspend
;;
"󰜉 Reboot")
systemctl reboot
;;
" Shutdown")
systemctl poweroff
;;
" Logout")
hyprctl dispatch exit
;;
esac