summary refs log tree commit diff
path: root/bin/mpvplay
blob: e76acffba404a5d1056879f7e999cc7958e23cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

set -e
[ -n "$DEBUG" ] && set -x

# uri=$(eval "echo ${1}")
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}"

# if ! mpv "${uri}"; then
# 	notify-send \
# 		-i "$(iconez -n mpv | grep 32)" \
# 		-a mpv \
# 		-c error \
# 		'failed' \
# 		"${uri}"
# fi
exec mpv "${uri}"