From 65048635cdc10b416d8b472aa95451c91e9aaad7 Mon Sep 17 00:00:00 2001 From: Jaidyn Lev Date: Sat, 26 Jan 2019 17:20:15 -0600 Subject: [PATCH] Added ARGUMENTS to mp --- README.txt | 2 +- mp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index e1cc5a5..416e0df 100644 --- a/README.txt +++ b/README.txt @@ -101,4 +101,4 @@ BORING STUFF ---------------------------------------- License is CC-0 (though, "gendl" is GPLv3) Author is Jenga Phoenix -Sauce is at https://git.eunichx.us/wyrics +Sauce is at https://git.eunichx.us/wyrics.git diff --git a/mp b/mp index 5fa4436..40c4ebb 100755 --- a/mp +++ b/mp @@ -9,6 +9,7 @@ # lisc: CC 0 ######################################## +ARGUMENTS='--vo null --term-osd-bar' trap "" 2 @@ -115,8 +116,8 @@ while test -n "$ITEMS"; do local item="$(car "$ITEMS")" cat "${item}.txt" 2> /dev/null - echo "===$(discarded_items)/$(total_items)===" - mpv "$item" + echo "===$(add $(discarded_items) 1)/$(total_items)===" + eval "mpv ${ARGUMENTS} ${item}" return=$? handle_return "$return"