~smlavine/scripts

ref: d01b5e637b661425887f3a353ee4b69365c796ec scripts/src/pausemusic -rwxr-xr-x 347 bytes
d01b5e63Sebastian LaVine musicsum: Remove early exit 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