From c208149bf9cab56451bd69a8417c38aa58b50036 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 19 Aug 2023 16:45:29 +0200 Subject: [PATCH] upd --- usr/bin/jgtint2-pipe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")