User Tools

Site Tools


informatica:linux:spotify
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Last revision
informatica:linux:spotify [2020/10/18 17:48] jose
Line 1: Line 1:
 +Si da error con el programa nativo
 +
 +  export SPOTIFYGNOMESUPPORT=yes
 +
 +====== Teclas: ======
 +Con este scric podemos stop, play, next y previous:
 +<code>
 +#!/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
 +</code>
 +
 +
  
informatica/linux/spotify.txt · Last modified: 2020/10/18 17:53 by jose