From 8ce30a9db3677de3f90c3f404bb6c93a4f64936a Mon Sep 17 00:00:00 2001 From: marcellus Date: Thu, 4 May 2023 19:38:38 +0200 Subject: feat: added script to select either music or musiccmd depending on whether mpv is already running or not --- scripts/selectopt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/selectopt (limited to 'scripts') 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 -- cgit v1.2.3