blob: 5fc841511bb7d292167aef2666eebd337db0c3e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
case "$(printf "new\nstop\nrestart" | dmenu -p "eserver: ")" in
"restart")
emacsclient -s MAIN --eval "(kill-emacs)";
notify-send "Halted Emacs server";
emacs --bg-daemon=MAIN;
notify-send "Restarted Emacs server";;
"stop")
emacsclient -s MAIN --eval "(kill-emacs)";
notify-send "Halted Emacs server";;
"new")
notify-send "Launching Emacs";
emacsclient -s MAIN -c -a=emacs;;
esac
|