mpvq: also allow links from argv
This commit is contained in:
parent
842951379a
commit
74fa46bd60
@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Append link from clipboard to mpv playlist
|
||||
# Append link from clipboard/argument to mpv playlist
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
path="$(xsel -b)"
|
||||
else
|
||||
path="$2"
|
||||
fi
|
||||
|
||||
path="$(xsel -b)"
|
||||
echo "{ command: [ \"loadfile\", \"$path\", \"append-play\" ] }" | socat - $1
|
||||
|
Loading…
Reference in New Issue
Block a user