3 ms·
For Spotify, at least, there is already MPRIS support which covers most of the advantages here I think.
by gtf21 6y ago
For Spotify, at least, there is already MPRIS support which covers most of the advantages here I think.
- mfontani 6y agoindeed - this works well with i3 + spotify (I only use spotify as my media player nowadays): bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" bindsym $mod+Shift+comma exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" bindsym $mod+Shift+period exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" bindsym $mod+semicolon exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
- nickcw 6y agoDid you figure out how to send Spotify a like this track message? I'd really like that on a key so I can like stuff while working without breaking the flow.
- mfontani 6y agoIf you have configured "spt" -- see https://github.com/Rigellute/spotify-tui https://github.com/Rigellute/spotify-tui -- you can "spt playback --like" to like the currently playing song. That program will work regardless of which device is currently playing things, i.e. I can run "spt playback --like" on my linux machine while the music is playing on my Windows box.
- nickcw 6y agoBrilliant, thanks :-)