Giter VIP home page Giter VIP logo

omnipause's Introduction

OmniPause

OmniPause is a python program to control media players via DBus.

Description

Have you ever wished you could control the playback of all your running media players with a single command or hotkey? Until now, there was no real good way to do this without spending all of your free time scripting playerctl. Now, with OmniPause, you can use a single, universal command to control all of your media players, with absolutely zero scripting required!

Dependencies

  • python3
  • dbus-python

Setup

Setup is very simple. Simply run sudo make install in the project directory.

Usage

Using the program is equally simple.

  • To pause all running media players, just execute omnipause pause
  • To resume playback of media players paused by the program, run omnipause play
  • To stop all media players, run omnipause stop
  • To skip to the next track on all playing media players, run omnipause next
  • To play the previous track on all playing media players, run omnipause previous
  • To toggle the playback state of running media players, run omnipause toggle
    • Note: omnipause toggle works by pausing all of the players if any of them are playing. If none of them are currently playing, it resumes playback any players paused by omnipause.

Contributing

This project was written over the course of 4-5 sleep-deprived hours. Additionally, I am not super familiar with Python or DBus. If you find a bug or find my code quality appalling, please submit a pull request.

Licensing

This project is released under GPL 3.0.

omnipause's People

Contributors

ekdohibs avatar labrat97 avatar mel00010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

omnipause's Issues

Unique Feature of Omnipause

Hello, I see the README says that you think that playerctl does everything your script does, but as far as I know, your script is the only one I have been able to find so far that can pause all players /and resume the one that was previously playing/. I had been looking for something like this for at least a year (my bash scripts around playerctl always got way too complicated and never fully worked), and I just want to say your work is valuable! Thank you!

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.