Giter Site home page Giter Site logo

pause-on-lock's Introduction

pause-on-lock

Simple script that pauses your music player, when the screen gets locked and resumes playback once the screen is unlocked again.

Supported desktop environments

Currently Unity, Cinnamon and GNOME are supported. The currently running desktop is detected using $XDG_CURRENT_DESKTOP.

Supported players

By default pause-on-lock supports Rhythmbox and Spotify. If you want support for more players, you can install playerctl. If playerctl is installed pause-on-lock supports all players that playerctl can handle.

Installation

You can download the latest release either as deb-package or as source tarball. In order to install the packages version run sudo dpkg -i pause-on-lock_1.1-0ubuntu1.deb, this will install the binary to /usr/bin/. If you don't want to use the packaged version, donwload the sources and put the executable in a directory of your choosing.

Usage

Simply run pause-on-lock, there is no further configuration needed. I strongly recommend to add the pause-on-lock executable to Startup Applications, so it is run every time you log in.

Tested with Ubuntu 16.04, 17.04, 17.10 and 18.04.

pause-on-lock's People

Contributors

folixg avatar j-bro avatar stlhrt avatar tronipm avatar

Watchers

James Cloos avatar  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.