#!/bin/sh -x

# tofi powermenu
case $(printf "%s\n" "  Lock session" "󰍃  Log out" "󰤄  Suspend" "  Reboot" "󰐥  Shut down" | fuzzel -d) in
  "  Lock session")
    swaylock
    ;;
  "󰍃  Log out")
    kill "$(pidof dwl)"
    ;;
  "󰤄  Suspend")
    loginctl suspend
    ;;
  "  Reboot")
    loginctl reboot
    ;;
  "󰐥  Shut down")
    loginctl poweroff
esac

