mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[contrib] .mailcap entry and systemd unit for playing audio with mpv
This commit is contained in:
parent
7fb28d900c
commit
9b367de33b
1
contrib/audio/.mailcap
Normal file
1
contrib/audio/.mailcap
Normal file
@ -0,0 +1 @@
|
||||
audio/*; echo '{"command":["loadfile","%s","append-play"]}' | socat - /tmp/mpv.sock 2> /dev/null > /dev/null
|
10
contrib/audio/audio.service
Normal file
10
contrib/audio/audio.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user