~smlavine/scripts

ref: 8ec12e5ae617f4262b1ee630a7bc1a4cc4d31bff scripts/src/pausemusic -rwxr-xr-x 346 bytes
8ec12e5aSebastian LaVine Shorten lines to less than 80 chars 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Copyright (c) 2020-2021 Sebastian LaVine <mail@smlavine.com>
# Licensed under the MIT license. See MIT.txt for details.
#
# File:        pausemusic
# Description: Toggles music playback, if music is playing in either pianobar
#              or cmus.

pidof cmus && cmus-remote -u
pidof pianobar && printf ' ' > ~/.config/pianobar/ctl