about summary refs log tree commit diff
path: root/scripts/mpc-play-pause.sh
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2019-09-04 00:37:09 +0300
committerazahi <azahi@teknik.io>2019-09-04 00:37:09 +0300
commitc12e737a4f3bb78bf6b77c9b2bfd93610be2937f (patch)
tree41ef9ae2238e96c1fc4b12b4a00ec05e4a39e064 /scripts/mpc-play-pause.sh
parentReplace alsa-mixer with external shell alternative (diff)
Bump 0.15.4
Diffstat (limited to 'scripts/mpc-play-pause.sh')
-rwxr-xr-xscripts/mpc-play-pause.sh4
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

Consider giving Nix/NixOS a try! <3