informatica:linux:spotify
Si da error con el programa nativo
export SPOTIFYGNOMESUPPORT=yes
Teclas:
Con este scric podemos stop, play, next y previous:
#!/usr/bin/env bash # Simple Spotify Control # Just call ./spotify_control --help CMD="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player" case "$1" in "playpause" ) ${CMD}.PlayPause exit $? ;; "next" ) ${CMD}.Next exit $? ;; "previous" ) ${CMD}.Previous exit $? ;; "stop" ) ${CMD}.Stop exit $? ;; "play" ) ${CMD}.Play exit $? ;; *) echo "Usage: $0 [command]" echo " commands are: playpause, next, previous, stop, play" exit 1 ;; esac
Notificaciones
Para deshabilitar notificaciones, en settings / Display Options / Show desktop notifications when the song changes
informatica/linux/spotify.txt · Last modified: 2020/10/18 17:53 by jose