Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243#!/bin/bash
# ----- Control Android Audio Playback -----sudo apt install playerctl pipewire-audio-client-libraries -y
mkdir -p ~/.config/systemd/user && cat <<'EOF' >~/.config/systemd/user/mpris-proxy.service[Unit]Description=Forward Bluetooth Media Controls to MPRISAfter=bluetooth.target
[Service]Type=simpleExecStart=/usr/bin/mpris-proxyRestart=on-failure
[Install]WantedBy=default.targetEOF
systemctl --user enable --now mpris-proxy # test via `playerctl play-pause`
# ----- MPV Gnome Integration -----sudo apt install mpv-mpris
mkdir -p ~/.config/mpv && cat <<'EOF' >~/.config/mpv/mpv.confscript-opts=mpris-enable=yesEOF
# ----- mprisence -----## <https://github.com/lazykern/mprisence>DEB_URL=$(curl -s https://api.github.com/repos/lazykern/mprisence/releases/latest | jq -r '.assets[] | select(.name | endswith("_amd64.deb")) | .browser_download_url') && wget -O /tmp/mprisence_latest.deb "$DEB_URL" && sudo apt install /tmp/mprisence_latest.deb && rm /tmp/mprisence_latest.deb
systemctl --user enable --now mprisence.service
mkdir -p ~/.config/mprisence && cat <<'EOF' >~/.config/mprisence/config.toml[player][player.Jellyfin]ignore = falseEOF