From fe0c756636c88baeeb0b80ac3e8817b7049fe4b1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 4 Nov 2025 16:38:51 +0000 Subject: eselect: use the Emacs systemd service instead of a random bg-daemon --- Scripts/.local/scripts/eselect | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'Scripts/.local/scripts') 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 -- cgit v1.2.3-13-gbd6f