

install it to /usr/local/bin and automatically make it executable using (this assumes you have the pause-on-lock script available in the current folder): To install pause-on-lock, download the script, copy it somewhere in your $PATH, like /usr/local/bin, and make it executable. With the help of playerctl (a command line controller for controlling media players that support the MPRIS D-Bus interface), this script can extend its supported music players to many others, including Audacious, VLC, Cmus, and others. Pause-on-lock works on Unity, GNOME, Cinnamon, KDE Plasma and MATE desktop environments, and by default it supports Spotify and Rhythmbox. Due to this you may unintentionally skip parts of podcasts or songs in a playlist, etc.Įnter pause-on-lock, a Bash script that pauses your music player when you lock the screen and resumes playback once the screen is unlocked. When you lock your computer screen (without suspending the system), most desktop audio players continue playback in the background, sometimes not emitting any sound ¹. Processing triggers for man-db (2.8.3-2). 167439 files and directories currently installed.) Selecting previously unselected package snap. The following packages were automatically installed and are no longer required:Īpache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 Install a Snap package using this following command :~# apt-get install snap -y

Unfortunately, Spotify for Linux is no longer in active development as there are no developers working on it, hence future updates/bugfixes would no longer be provided and supported. But with the rising of the likes of Apple music, Spotify team have constantly been releasing new features like Release radar and Discover Weekly, including Daily Mix.

Spotify remains one of the most widely used music streaming services.
