#!/bin/sh CORE="suspend\nsuspend in 5 minutes\nreboot\nshutdown\n" EXTRA="sync music\nAIO pump speed\nkey repeat rate\nfan curve\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;; "fan curve") liquidctl_fan-curve;; "key repeat rate") xset r rate 200 40;; "AIO pump speed") set_pump_speed;; "volume mixer") st -i -g 60x20-200+200 -e pulsemixer;; "sync music") sync_music;; esac