summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/selectopt5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/selectopt b/scripts/selectopt
new file mode 100755
index 0000000..eff605f
--- /dev/null
+++ b/scripts/selectopt
@@ -0,0 +1,5 @@
+# !/bin/sh
+# a script to select whether music or musiccmd should be called,
+# depending on whether mpv is already running or not
+
+pidof mpv >/dev/null && musiccmd || music \ No newline at end of file