1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-25 21:25:39 +00:00

Added transmission script

This commit is contained in:
pgrondek 2019-05-30 22:58:54 +02:00
parent 9662fdc7d9
commit 96e8681d68
4 changed files with 25 additions and 0 deletions

15
bin/transmission-add Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
address=192.168.50.101
set -x
transmission-remote $address -a "$1" &> /dev/null
status=$?
if [ $status -eq 0 ] ; then
notify-send Transmission "Added torrent"
else
notify-send Transmission "Error adding torrent"
fi

View File

@ -9,6 +9,8 @@ rm -f $HOME/.config/dunst/dunstrc
rm -f $HOME/.config/i3blocks rm -f $HOME/.config/i3blocks
rm -f $HOME/.i3status.conf rm -f $HOME/.i3status.conf
rm -f $HOME/bin/lock rm -f $HOME/bin/lock
rm -f $HOME/bin/transmission-add
rm -f $HOME/.local/share/applications/torrent.desktop
mkdir -p $HOME/.config/i3 mkdir -p $HOME/.config/i3
mkdir -p $HOME/.config/dunst mkdir -p $HOME/.config/dunst
@ -24,6 +26,8 @@ ln -s $(pwd)/i3blocks $HOME/.config/i3blocks
ln -s $(pwd)/dunstrc $HOME/.config/dunst/dunstrc ln -s $(pwd)/dunstrc $HOME/.config/dunst/dunstrc
ln -s $(pwd)/bin/lock $HOME/bin/lock ln -s $(pwd)/bin/lock $HOME/bin/lock
ln -s $(pwd)/bin/transmission-add $HOME/bin/transmission-add
ln -s $(pwd)/local/share/applications/torrent.desktop $HOME/.local/share/applications/torrent.desktop
# Gnome # Gnome
# dconf load /org/gnome/desktop/ < gnome/desktop.txt # dconf load /org/gnome/desktop/ < gnome/desktop.txt

View File

@ -0,0 +1,2 @@
[Default Applications]
x-scheme-handler/magnet=torrent.desktop;

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Transmission
Exec=/usr/bin/env transmission-add %U