summaryrefslogtreecommitdiffstats
path: root/.local/bin/torwrap
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/torwrap')
-rwxr-xr-x.local/bin/torwrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/torwrap b/.local/bin/torwrap
index 2e42c87..82a268a 100755
--- a/.local/bin/torwrap
+++ b/.local/bin/torwrap
@@ -2,6 +2,6 @@
ifinstalled tremc transmission-cli || exit
-! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}"
+! ps ax | grep -q "\stransmission-daemon$" && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}" &
$TERMINAL -e tremc