summary refs log tree commit diff
path: root/bin/mpvplay
blob: 9c92516b6d6ef2a9e7eaa2f7ca06b5aa302db4f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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}"