blob: d821572112cd19a28a032132b71a23f3c7724312 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env zsh
# power off after mpd stops playing
mpc play > /dev/null
while true; do
mpc idle player > /dev/null || return 1
if [[ -z "$(mpc status | grep playing)" ]]; then
poweroff
fi
done
|