diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/mpc-play-pause.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mpc-play-pause.sh b/scripts/mpc-play-pause.sh index 3fb4f3b..887ba5b 100755 --- a/scripts/mpc-play-pause.sh +++ b/scripts/mpc-play-pause.sh @@ -1,6 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -if mpc | grep -q "playing" +if mpc | grep -q '\[playing\]' then mpc --no-status pause else |