#!/usr/bin/env bash

case "$(printf "logout\nreboot\nshutdown\nsleep\n" | wofi --dmenu -i -H 500 -W 250 -x 0 -y 0 )" in
	'logout') swaymsg exit;;
	'sleep') ~/.local/bin/suspend ;;
	'reboot') sudo reboot ;;
	'shutdown') sudo poweroff ;;
	*) exit 1 ;;
esac

