#!/bin/bash entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown" selected=$(echo -e $entries|wofi --width 350 --height 250 --dmenu --cache-file /dev/null | awk '{print tolower($2)}') case $selected in logout) swaymsg exit;; suspend) exec loginctl suspend;; reboot) exec loginctl reboot;; shutdown) exec loginctl poweroff -i;; esac