Files
dotfiles/Scripts/.local/scripts/eselect
Aryadev Chavali 7a28e20e82 (Scripts)~eserver -> eselect
Remove eserver cos it's useless and integrate emacsclient into eselect
2020-09-21 22:11:00 +01:00

16 lines
469 B
Bash
Executable File

#!/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