mirror of
https://github.com/pgrondek/config.git
synced 2024-11-22 20:13:43 +00:00
Added transmission script
This commit is contained in:
parent
9662fdc7d9
commit
96e8681d68
15
bin/transmission-add
Executable file
15
bin/transmission-add
Executable 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
|
@ -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
|
||||||
|
2
local/share/applications/mimeapps.list
Executable file
2
local/share/applications/mimeapps.list
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[Default Applications]
|
||||||
|
x-scheme-handler/magnet=torrent.desktop;
|
4
local/share/applications/torrent.desktop
Executable file
4
local/share/applications/torrent.desktop
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Transmission
|
||||||
|
Exec=/usr/bin/env transmission-add %U
|
Loading…
Reference in New Issue
Block a user