blob: c8078c5dfd2510243bbfa1d99f076419f527808d (
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
|
#!/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}"
if ! mpv "${uri}"; then
notify-send \
-i "$(iconez -n mpv | grep 32)" \
-a mpv \
-c error \
'failed' \
"${uri}"
fi
|