#!/usr/bin/env bash e='󰗽 Logout' u='󰖔 Suspend' r='󰑐 Reboot' s='󰐥 Shutdown' selected=$(echo -e "$e\n$u\n$r\n$s" | tofi "$@") case "$selected" in "$e") exec hyprctl dispatch 'hl.dsp.exit()';; "$u") exec systemctl suspend;; "$r") exec systemctl reboot;; "$s") exec systemctl poweroff -i;; esac