aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/eselect22
1 files changed, 13 insertions, 9 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index 1e9e216..1969947 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -3,18 +3,22 @@
case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
"restart")
emacsclient --eval "(save-buffers-kill-emacs)" && \
- emacs --bg-daemon && \
- notify-send "eselect: Restarted server";;
+ suctl restart emacs && \
+ notify-send "eselect: Restarted server";;
"stop")
emacsclient --eval "(save-buffers-kill-emacs)" && \
- notify-send "eselect: Halted server";;
+ suctl stop emacs && \
+ notify-send "eselect: Halted server";;
"new")
- notify-send "eselect: Launching Emacs" && \
- emacsclient -c -a "emacs";;
+ notify-send "eselect: Launching Emacs" && \
+ suctl start emacs && \
+ emacsclient -c -a "emacs";;
"eshell")
- notify-send "eselect: Launching Eshell" && \
- emacsclient -c -a "emacs" --eval "(progn (eshell) (delete-other-windows))";;
+ notify-send "eselect: Launching Eshell" && \
+ suctl start emacs && \
+ emacsclient -c -a "emacs" --eval "(progn (eshell) (delete-other-windows))";;
"mail")
- notify-send "eselect: Launching notmuch" && \
- emacsclient -c -a "emacs" --eval "(progn (notmuch) (delete-other-windows))";;
+ notify-send "eselect: Launching notmuch" && \
+ suctl start emacs && \
+ emacsclient -c -a "emacs" --eval "(progn (notmuch) (delete-other-windows))";;
esac