mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
513 B
11 lines
513 B
#!/bin/sh
|
|
# If transmission-daemon is running, will ask to kill, else will ask to start.
|
|
if pgrep -x transmission-da >/dev/null ;
|
|
then
|
|
[ "$(printf "No\\nYes" | dmenu -i -p "Kill transmission-daemon?")" = "Yes" ] && killall transmission-da && notify-send "transmission-daemon killed."
|
|
else
|
|
ifinstalled transmission-cli || exit
|
|
[ "$(printf "No\\nYes" | dmenu -i -p "Start transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "tranmission-daemon started."
|
|
fi
|
|
sleep 3 && pkill -RTMIN+7 i3blocks
|