From e459d2c9b6448ae1a2e89bc1f1115a1ad4235dd0 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 31 May 2021 16:56:44 +0200 Subject: tridactyl: update, add mpvplay script --- bin/mpvplay | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/mpvplay (limited to 'bin/mpvplay') diff --git a/bin/mpvplay b/bin/mpvplay new file mode 100755 index 0000000..9c92516 --- /dev/null +++ b/bin/mpvplay @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e +[ -n "$DEBUG" ] && set -x + +uri="${1}" + +notify-send \ + -i "$(iconez -n mpv | grep 32)" \ + -a mpv \ + 'playing' \ + "${uri}" + +# if xap now >/dev/null 2>&1; then +# xap player run --no-defaults --detached +# fi + +# exec xap add -n "${uri}" +exec mpv "${uri}" -- cgit 1.4.1