From fd22305dac10cfe08923dbf9a3d482da23dd2845 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 18 Oct 2023 20:01:26 +0100 Subject: (Scripts)~Prefix every notify-send with script creating it --- Scripts/.local/scripts/eselect | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Scripts/.local/scripts/eselect') diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect index 8759896..0f2d682 100755 --- a/Scripts/.local/scripts/eselect +++ b/Scripts/.local/scripts/eselect @@ -3,17 +3,17 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in "restart") systemctl --user restart emacs; - notify-send "Restarted Emacs server";; + notify-send "eselect: Restarted Emacs server";; "stop") systemctl --user stop emacs; - notify-send "Halted Emacs server";; + notify-send "eselect: Halted Emacs server";; "new") - notify-send "Launching Emacs"; + notify-send "eselect: Launching Emacs"; emacsclient -c;; "eshell") - notify-send "Launching Eshell"; + notify-send "eselect: Launching Eshell"; emacsclient -c --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';; "mail") - notify-send "Launching notmuch"; + notify-send "eselect: Launching notmuch"; emacsclient -c --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';; esac -- cgit v1.2.3-13-gbd6f