summaryrefslogtreecommitdiff
path: root/spqpwg
diff options
context:
space:
mode:
Diffstat (limited to 'spqpwg')
-rwxr-xr-xspqpwg8
1 files changed, 8 insertions, 0 deletions
diff --git a/spqpwg b/spqpwg
new file mode 100755
index 0000000..a35aa5f
--- /dev/null
+++ b/spqpwg
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+COUNT="$(pgrep -U "$(whoami)" -f qpwgraph | wc -l)"
+echo "$COUNT"
+
+if [ "${COUNT:-0}" -eq "0" ]; then
+ exec qpwgraph
+fi