#!/bin/sh
CORE="suspend\nsuspend in 5 minutes\nreboot\nshutdown\n"
EXTRA="key repeat ratee\nvolume mixer"

ACTION=$(printf "$CORE$EXTRA" | dmenu -c -i -l 10 -p "manager")

case "$ACTION" in
  "suspend")
    systemctl suspend;;
  "suspend in 5 minutes")
    sleep 300;systemctl suspend;;
  "reboot")
    systemctl reboot;;
  "shutdown")
    systemctl poweroff;;
  "key repeat rate")
    xset r rate 200 40;;
  "volume mixer")
    st -i -g 60x20-200+200 -e pulsemixer;;
esac
