1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in "restart") eserver restart; notify-send "Restarted eserver";; "stop") eserver stop; notify-send "Halted eserver";; "new") notify-send "Launching Emacs"; eserver --create-frame -a=emacs;; esac