1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[contrib] .mailcap entry and systemd unit for playing audio with mpv

This commit is contained in:
Witold Filipczyk 2022-07-18 16:07:10 +02:00
parent 7fb28d900c
commit 9b367de33b
2 changed files with 11 additions and 0 deletions

1
contrib/audio/.mailcap Normal file
View File

@ -0,0 +1 @@
audio/*; echo '{"command":["loadfile","%s","append-play"]}' | socat - /tmp/mpv.sock 2> /dev/null > /dev/null

View File

@ -0,0 +1,10 @@
[Unit]
Description=mpv
[Service]
ExecStart=/usr/bin/mpv --idle=yes --input-ipc-server=/tmp/mpv.sock
Type=simple
#Environment=PULSE_SERVER=192.168.1.10
[Install]
WantedBy=default.target