summaryrefslogtreecommitdiff
path: root/spncmp
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-26 13:25:34 -0600
committerzachir <zachir@librem.one>2023-02-26 13:25:34 -0600
commit05a7db83bed77fc1d9a39b901123a9409bf726df (patch)
treed282e5abcd7983967684237555f8a16faf78168d /spncmp
add scratchpads (for Hyprland)
Diffstat (limited to 'spncmp')
-rwxr-xr-xspncmp7
1 files changed, 7 insertions, 0 deletions
diff --git a/spncmp b/spncmp
new file mode 100755
index 0000000..aa7ccdb
--- /dev/null
+++ b/spncmp
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+COUNT="$(pgrep -U "$(whoami)" -f "$(basename $0)" | wc -l)"
+
+if [ "${COUNT:-0}" -lt "3" ]; then
+ exec foot -a "$(basename $0)" ncmpcpp
+fi