diff --git a/usr/bin/jgtint2-pipe b/usr/bin/jgtint2-pipe
index ea8afce..c3a719f 100755
--- a/usr/bin/jgtint2-pipe
+++ b/usr/bin/jgtint2-pipe
@@ -444,7 +444,7 @@ qactions () {
out+=("^sep($TITLE)")
out+=("^sep($APPS)")
out+=(" $LAUNCHERS,jgtint2launcher")
-if [ "$(pidof tint2)" ];then
+if [ "$(pgrep -u $USER -f tint2)" ];then
i=0
#out+=("^sep($TINT2_CONFIGURE)")
while read -r pid cmd; do
@@ -468,7 +468,7 @@ i=0
fi
fi
- done < <(pgrep -a tint2)
+ done < <(pgrep -u $USER -a tint2)
fi
@@ -479,7 +479,7 @@ PHWRUN="mabox-obstart phwmon"
. $HOME/.config/mabox/mabox.conf
out+=("^sep($TRAY_HWMON)")
- if [ "$(pgrep -f phwmon.py)" ];then
+ if [ "$(pgrep -u $USER -f phwmon.py)" ];then
out+=("$STOP,mb-setvar phwmon_monitor=false;sleep 2;$PHWRUN;$me")
out+=("^sep()")
[[ $phwmon_cpu = false ]] && out+=(" CPU,mb-setvar phwmon_cpu=true;$PHWRUN;$me") || out+=(" CPU,mb-setvar phwmon_cpu=false;$PHWRUN;$me")