https://github.com/mjc-gh/spotify-dbus
Simple gem and utility bin for controlling the Spotify player via the DBus
https://github.com/mjc-gh/spotify-dbus
Last synced: 4 months ago
JSON representation
Simple gem and utility bin for controlling the Spotify player via the DBus
- Host: GitHub
- URL: https://github.com/mjc-gh/spotify-dbus
- Owner: mjc-gh
- Created: 2011-07-15T04:24:23.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-09-10T18:57:36.000Z (about 14 years ago)
- Last Synced: 2025-06-12T06:00:31.721Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 94.7 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# spotify-dbus (for Ruby)
## Credits
DBus exmaple from:
https://gist.github.com/892428## Install
gem install spotify-dbus
## Examples
require 'spotify-dbus'
Spotify.player.Pause
Spotify.player.Play## Command Line Utility
spotify-dbus Next
spotify-dbus Previous
spotify-dbus PlayPause
Available methods
-----------------* Next
* Previous
* Pause
* PlayPause (think toggle)
* Stop
* Play
* Seek
* SetPosition
* OpenUriRVM Wrapper
-----------This is useful when creating keyboard shortcuts in Linux (and OSX).
rvm wrapper [version]@spotify-dbus [prefix] spotify-dbus
For example:rvm wrapper 1.9.2@spotify-dbus wrapper spotify-dbus
Now you can bind a shortcut with the following command/home/[name]/.rvm/bin/wrapper_spotify-dbus [cmd]
For example:/home/bob/.rvm/bin/wrapper_spotify-dbus PlayPause