From 37788be5d97cf9c32be1abae76fddc77f4ea87f6 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 18 Apr 2020 10:33:58 -0400 Subject: ifinstalled now checks for packages, iplocate fix, sleep removed from torwrap --- .local/bin/torwrap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/torwrap') diff --git a/.local/bin/torwrap b/.local/bin/torwrap index 82a268a..4f94053 100755 --- a/.local/bin/torwrap +++ b/.local/bin/torwrap @@ -1,7 +1,7 @@ #!/bin/sh -ifinstalled tremc transmission-cli || exit +ifinstalled tremc-git transmission-cli || exit -! ps ax | grep -q "\stransmission-daemon$" && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}" & +! pidof transmission-daemon >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." -$TERMINAL -e tremc +$TERMINAL -e tremc; pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}" -- cgit v1.3.1