#!/bin/bash

SELECTION="$(printf "󰶐  Turn off displays\n󰌾  Lock\n󰤄  Suspend\n󰍃  Log out\n󰜉  Reboot\n󰐥  Shutdown" | fuzzel --dmenu -l 6 -p "Power Menu: ")"

case $SELECTION in
  *"Turn off displays")
    niri msg action power-off-monitors;;
  *"Lock")
	gtklock -d;;
  *"Suspend")
	loginctl suspend;;
  *"Log out")
	niri msg action quit -s;;
  *"Reboot")
	loginctl reboot;;
  *"Shutdown")
	loginctl poweroff;;
esac
