aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sway/.local/bin/sway-mpv
diff options
context:
space:
mode:
Diffstat (limited to 'sway/.local/bin/sway-mpv')
-rwxr-xr-xsway/.local/bin/sway-mpv4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/.local/bin/sway-mpv b/sway/.local/bin/sway-mpv
index a39a0aa..67ec133 100755
--- a/sway/.local/bin/sway-mpv
+++ b/sway/.local/bin/sway-mpv
@@ -3,7 +3,7 @@
if [ ! -t 0 ]; then
set -- "$@" "$(cat)"
elif [ $# -eq 0 ]; then
- IFS=: grep -Po '# title: \K.*' "$XDG_STATE_HOME"/mpv/watch_later/* | while IFS=: read -r file match; do
+ grep -Po '# title: \K.*' "$XDG_STATE_HOME"/mpv/watch_later/* | while IFS=: read -r file match; do
grep -Pom1 '# \K.*' "$file" | tr -d '\n'
printf ': %s\n' "$match"
done
@@ -11,4 +11,4 @@ elif [ $# -eq 0 ]; then
fi
# shellcheck disable=SC2068
-swaymsg exec -- mpv "${1%*:*}"
+swaymsg exec -- mpv --msg-level=all=no "${1%*:*}"