Coder Social home page Coder Social logo

yned / mpris-ctrl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swarminglogic/mpris-ctrl

1.0 2.0 0.0 160 KB

Command-line utility for controlling media players that support MPRIS (vlc, audacity, bmp, xmms2, spotify (partial), etc.)

License: MIT License

Shell 100.00%

mpris-ctrl's Introduction

mpris-ctrl

Command-line utility for controlling media players supporting MPRIS (vlc, audacity, bmp, xmms2, spotify (partial), etc.)

About

mpris-ctrl simplifies common D-Bus message commands that are supported by the MPRIS D-Bus interface specification

Installing

mpris-ctrl is a standalone script, and is installed by placing it (or symlinking to) somewhere in the PATH variable.

A suggested way to download and install for all users:

sudo git clone https://github.com/swarminglogic/mpris-ctrl.git /opt/mpris-ctrl
sudo ln -s /opt/mpris-ctrl/mpris-ctrl.sh /usr/local/bin/mpris-ctrl

Usage / Supported Commands

USAGE:
mpris-ctrl [OPTIONS]
mpris-ctrl PLAYER COMMAND [ARGUMENTS]

OPTIONS:
-h, --help              Show help
-v, --version           Print version information
-l, --list              Lists available NAME targets

COMMANDS (ROOT):
raise                   Raises player window
quit                    Quits player

COMMANDS (PLAYER):
play                    Issues play command
pause                   Issues pause command
stop                    Issues stop command
play-pause              Toggles between playing and pausing
next                    Plays next item in playlist
prev[ious]              Plays previous item in playlist
status                  Displays the status of the player
volume                  Get volume level.
volume [LEVEL]          Set volume level.
                        LEVEL should be in range [0.0, 1.0]

COMMANDS (PLAYLIST):
tracks                  Displays tracks
add-track PATH [PLAY]   Appends file PATH to playlist.
                        PLAY should be one of {true, false(default)}
                        If true: append and skip to this item in the playlist.
                        If false, append the item to the playlist.

Examples

Listing active and supported MPRIS player targets:

$ mpris-ctrl -l

Toggling spotify play-pause:

$ mpris-ctrl spotify play-pause

Jump to next spotify track:

$ mpris-ctrl spotify next

Append video to vlc playlist:

$ mpris-ctrl vlc add-track video.mp4

License

The mpris-ctrl utility is licensed under the MIT License.

See LICENSE

mpris-ctrl's People

Contributors

swarminglogic avatar

Stargazers

Guilherme I F L Weizenmann avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.