diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-18 20:01:26 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-18 20:01:26 +0100 |
commit | fd22305dac10cfe08923dbf9a3d482da23dd2845 (patch) | |
tree | f2c3e251ef660dbc9cb7dc321b5e65c0ae98d1ee /Scripts/.local/scripts/eselect | |
parent | 84fb1be64cf47f7867d1163ec396af84cf8471b8 (diff) | |
download | dotfiles-fd22305dac10cfe08923dbf9a3d482da23dd2845.tar.gz dotfiles-fd22305dac10cfe08923dbf9a3d482da23dd2845.tar.bz2 dotfiles-fd22305dac10cfe08923dbf9a3d482da23dd2845.zip |
(Scripts)~Prefix every notify-send with script creating it
Diffstat (limited to 'Scripts/.local/scripts/eselect')
-rwxr-xr-x | Scripts/.local/scripts/eselect | 10 |
1 files changed, 5 insertions, 5 deletions
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 |