diff --git a/helpers/DATA/compton/trisquel-compton-switcher b/helpers/DATA/compton/trisquel-compton-switcher index 541774a..107f9e6 100644 --- a/helpers/DATA/compton/trisquel-compton-switcher +++ b/helpers/DATA/compton/trisquel-compton-switcher @@ -1,7 +1,7 @@ #!/bin/bash #Check if compton is currently running. -case "$(pidof compton | wc -w)" in +case "$(pgrep -u $USER compton | wc -w)" in 0) COMPTON_RUNNING=false ;;