diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-10-27 11:02:46 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-10-27 11:02:46 +0200 |
commit | 37de71d510adc3a3210b04c8b9c9630fe0467f68 (patch) | |
tree | b4fa657b84a9b830f66c5c7a610309080a4562c7 /toggle-music | |
parent | b028ae3aa8aebbe5c4929704fd17341f22644bec (diff) | |
download | bin-37de71d510adc3a3210b04c8b9c9630fe0467f68.tar.gz bin-37de71d510adc3a3210b04c8b9c9630fe0467f68.tar.xz |
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'toggle-music')
-rwxr-xr-x | toggle-music | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toggle-music b/toggle-music new file mode 100755 index 0000000..c491b76 --- /dev/null +++ b/toggle-music @@ -0,0 +1,8 @@ +#!/bin/bash + +if pgrep spotify &>/dev/null; then + mpc pause + dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause +else + mpc toggle +fi |