#!/bin/sh OPTIONS="suspend\npoweroff\nreboot" . ~/.dmenurc dmenu_cmd="dmenu $DMENU_OPTIONS" result=$(printf "$OPTIONS" | $dmenu_cmd -i -p 'systemctl ') systemctl "$result"