#!/bin/sh choice=$(echo -e "Lock\nLogout\nReboot\nShutdown" | wofi --dmenu --hide-search --lines 4 --hide-scroll --width 100) case "$(echo "$choice" | tr '[:upper:]' '[:lower:]')" in lock) hyprlock ;; logout) # hyprctl dispatch exit command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit ;; reboot) systemctl reboot ;; shutdown) systemctl poweroff ;; esac