diff options
| author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-11-04 16:38:51 +0000 |
|---|---|---|
| committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-11-04 16:38:51 +0000 |
| commit | fe0c756636c88baeeb0b80ac3e8817b7049fe4b1 (patch) | |
| tree | b0126070d2330c31847eaa5f21fc3673cbe58d0d /Scripts/.local/scripts/eselect | |
| parent | 0fb4a5937293235346c1ba5af5891e58cea45953 (diff) | |
| download | dotfiles-fe0c756636c88baeeb0b80ac3e8817b7049fe4b1.tar.gz dotfiles-fe0c756636c88baeeb0b80ac3e8817b7049fe4b1.tar.bz2 dotfiles-fe0c756636c88baeeb0b80ac3e8817b7049fe4b1.zip | |
eselect: use the Emacs systemd service instead of a random bg-daemon
Diffstat (limited to 'Scripts/.local/scripts/eselect')
| -rwxr-xr-x | Scripts/.local/scripts/eselect | 22 |
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 |
