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