old-dotfiles/bin/transadd

7 lines
331 B
Plaintext
Raw Normal View History

2023-04-18 09:55:20 +02:00
#!/bin/sh
pgrep -x transmission-da >/dev/null || (transmission-daemon && notify-send "Starting transmission daemon...") && sleep 3
# ssh 192.168.1.100 "transmission-remote -a \"$@\"" && notify-send "🔻 Transmission-daemon" "Torrent Added."
transmission-remote -a "$@" && notify-send "🔻 Transmission-daemon" "Torrent Added."