aboutsummaryrefslogtreecommitdiffstats
path: root/.config/init/funcs/mpd-sleep
diff options
context:
space:
mode:
Diffstat (limited to '.config/init/funcs/mpd-sleep')
-rwxr-xr-x.config/init/funcs/mpd-sleep12
1 files changed, 6 insertions, 6 deletions
diff --git a/.config/init/funcs/mpd-sleep b/.config/init/funcs/mpd-sleep
index c01d734..d821572 100755
--- a/.config/init/funcs/mpd-sleep
+++ b/.config/init/funcs/mpd-sleep
@@ -1,10 +1,10 @@
-#!/bin/zsh
+#!/usr/bin/env zsh
+# power off after mpd stops playing
-# power off after finishing mpd playlist
mpc play > /dev/null
while true; do
- mpc idle player > /dev/null || return 1
- if [[ -z "$(mpc status | grep playing)" ]]; then
- poweroff
- fi
+ mpc idle player > /dev/null || return 1
+ if [[ -z "$(mpc status | grep playing)" ]]; then
+ poweroff
+ fi
done