diff options
Diffstat (limited to 'private_dot_local/bin/executable_emacs-transmission')
| -rw-r--r-- | private_dot_local/bin/executable_emacs-transmission | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_emacs-transmission b/private_dot_local/bin/executable_emacs-transmission new file mode 100644 index 0000000..1b0f665 --- /dev/null +++ b/private_dot_local/bin/executable_emacs-transmission | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | exec /usr/bin/emacsclient --no-wait --quiet --alternate-editor= --eval "(let* ((torrent (pop server-eval-args-left))) (require 'notifications) (condition-case nil (progn (transmission-add torrent) (notifications-notify :title \"Transmission\" :body (format \"Torrent probably added: %s\" torrent) :timeout 2000)) (error (notifications-notify :title \"Transmission\" :body \"Something went wrong, check if transmission daemon is running.\") nil)))" "$@" | ||
