All Projects β†’ folixg β†’ Pause On Lock

folixg / Pause On Lock

Licence: mit
Pause/Resume your music player when locking/unlocking your Linux desktop.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Pause On Lock

Tauonmusicbox
The Linux desktop music player from the future! πŸŒ†
Stars: ✭ 494 (+525.32%)
Mutual labels:  player, spotify, music-player
Gtk Theming Guide
Novice guide towards making your own first gtk theme!
Stars: ✭ 95 (+20.25%)
Mutual labels:  unity, ubuntu, gnome
Desktopfolder
Bring your Desktop Back to Life
Stars: ✭ 171 (+116.46%)
Mutual labels:  ubuntu, gnome, desktop
blade-player
Android music player that plays from local library, Spotify or Deezer
Stars: ✭ 67 (-15.19%)
Mutual labels:  player, spotify, music-player
Negibox
All in one downloader 全能下载器
Stars: ✭ 335 (+324.05%)
Mutual labels:  ubuntu, gnome, desktop
Olivia
Elegant music player for LINUX
Stars: ✭ 261 (+230.38%)
Mutual labels:  spotify, music-player, ubuntu
MusicPlayer
A Telegram Music Bot written in Python using Pyrogram and Py-Tgcalls. This is Also The Source Code of The UserBot Which is Playing Music in @S1-BOTS Support Group ❀️
Stars: ✭ 218 (+175.95%)
Mutual labels:  player, spotify, music-player
Flatabulous
This is a Flat theme for Ubuntu and other Gnome based Linux Systems.
Stars: ✭ 3,725 (+4615.19%)
Mutual labels:  unity, ubuntu, gnome
Monstercat Visualizer
A real time audio visualizer for Rainmeter similar to the ones used in the Monstercat videos.
Stars: ✭ 571 (+622.78%)
Mutual labels:  player, spotify, desktop
Lightgallery Desktop
A modern, electron and nodejs based image viewer for Mac, Windows and Linux.
Stars: ✭ 945 (+1096.2%)
Mutual labels:  ubuntu, desktop
Spotify Linux Installer
Install latest Spotify on Linux
Stars: ✭ 28 (-64.56%)
Mutual labels:  spotify, ubuntu
Atomos
JS-based Linux desktop environment.
Stars: ✭ 42 (-46.84%)
Mutual labels:  ubuntu, desktop
Yesplaymusic
ι«˜ι’œε€Όηš„η¬¬δΈ‰ζ–Ήη½‘ζ˜“δΊ‘ζ’­ζ”Ύε™¨οΌŒζ”―ζŒ Windows / macOS / Linux
Stars: ✭ 12,981 (+16331.65%)
Mutual labels:  player, music-player
Spot
Native Spotify client for the GNOME desktop
Stars: ✭ 762 (+864.56%)
Mutual labels:  spotify, gnome
Lofi Player
🎧 A Lofi Player built with HTML, CSS and Javascript using Parcel as Module Bundler https://lakscastro.github.io/lofi-player
Stars: ✭ 38 (-51.9%)
Mutual labels:  player, music-player
Libvlcsharp
Cross-platform .NET/Mono bindings for LibVLC
Stars: ✭ 752 (+851.9%)
Mutual labels:  unity, player
Pandoraplayer
πŸ…ΏοΈ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift.
Stars: ✭ 1,037 (+1212.66%)
Mutual labels:  player, music-player
Spocon
SpoCon - A Spotify Connect Client for Debian , Ubuntu and Raspberry Pi based on librespot-java
Stars: ✭ 51 (-35.44%)
Mutual labels:  spotify, ubuntu
2d Character Controller
Free 2D Character Controller for Unity.
Stars: ✭ 643 (+713.92%)
Mutual labels:  unity, player
Kaku
🎧 Kaku is a highly integrated music player supports different online platform like YouTube, SoundCloud, Vimeo and more. Available on Mac, Windows and Linux.
Stars: ✭ 1,028 (+1201.27%)
Mutual labels:  player, music-player

logo

pause-on-lock

Automatically pause your music player when the screen gets locked and resume playback, once the screen is unlocked again.

Supported desktop environments

Currently Unity, Cinnamon, GNOME, MATE, KDE, POP!_OS and XFCE are supported. The currently running desktop is detected using $XDG_CURRENT_DESKTOP.

Installation

Download the executable for the latest release and run

sudo install pause-on-lock /usr/local/bin/

If you don't have sudo rights or don't want a system-wide installation, change the install destination directory to e.g. $HOME/bin (and make sure that that folder is in your $PATH).

Usage

Rhythmbox and Spotify

By default pause-on-lock supports Rhythmbox and Spotify. If you use no other players, no further configuration is needed, you can simply run pause-on-lock.

User defined player

With the --player or -p flag you can provide the name of one additional player that pause-on-lock will then handle. The player needs to provide a MPRIS D-Bus interface (which is the case for most common media players) and the name you provide needs to match the name used for the D-Bus interface. For example vlc provides a D-Bus interface at org.mpris.MediaPlayer2.vlc so all you need to do is call pause-on-lock -p vlc and pause-on-lock will pause any running vlc instance when you lock your screen.

tl;dr pause-on-lock --player NAME should work in most cases.

Playerctl

If you want support for many different players and you have playerctl installed, you can use the --playerctl or -c flag to enable playerctl support in pause-on-lock. Then all players that playerctl can handle are supported, without the need for further configuration.

Autostart

I strongly recommend to add the pause-on-lock executable to Startup Applications (or the equivalent for your desktop environment), so it is run every time you log in.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].