summaryrefslogtreecommitdiff
path: root/bin/menuscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/menuscripts')
-rwxr-xr-xbin/menuscripts/mhelp6
-rwxr-xr-xbin/menuscripts/mplay6
-rwxr-xr-xbin/menuscripts/mpwgen (renamed from bin/menuscripts/mpassgen)0
3 files changed, 3 insertions, 9 deletions
diff --git a/bin/menuscripts/mhelp b/bin/menuscripts/mhelp
index 339d6bf..cb7977b 100755
--- a/bin/menuscripts/mhelp
+++ b/bin/menuscripts/mhelp
@@ -1,16 +1,16 @@
#!/usr/bin/env sh
-program="$(commander -r -c -d)"
+program="$(commander -rcd)"
[ "$program" ] || exit 1
option="$("$program" --help |
# Parse options
- grep "^ *-[-a-zA-Z0-9]* " |
+ grep -- "^ *-[-a-zA-Z0-9]* " |
tr -s ' ' |
sort | uniq |
column -l 2 -t |
- commander -l -x -c -d |
+ commander -lxcd |
awk '{print $1}')"
[ "$option" ] || exit 1
diff --git a/bin/menuscripts/mplay b/bin/menuscripts/mplay
deleted file mode 100755
index e4fca54..0000000
--- a/bin/menuscripts/mplay
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-choice="$(mpc listall | commander -c -l -d -x)"
-[ "$choice" ] || exit 1
-mpc insert "$choice" || exit 1
-mpc next 2> /dev/null
-mpc play 2> /dev/null
diff --git a/bin/menuscripts/mpassgen b/bin/menuscripts/mpwgen
index 51b9bc4..51b9bc4 100755
--- a/bin/menuscripts/mpassgen
+++ b/bin/menuscripts/mpwgen