From f895f2b2f3bcca26d7fe0b4f3cfae04ed100f24a Mon Sep 17 00:00:00 2001 From: shibao Date: Tue, 22 Mar 2022 21:07:48 -0400 Subject: [PATCH] remove mpd in restart music script --- home/default/scripts/restart-music | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/home/default/scripts/restart-music b/home/default/scripts/restart-music index edca710..2395097 100755 --- a/home/default/scripts/restart-music +++ b/home/default/scripts/restart-music @@ -1,28 +1,12 @@ #!/usr/bin/env bash set -euo pipefail -CANTATA_RUNNING=0 - -if pgrep -f cantata &>/dev/null 2>&1; then - echo killing cantata... - CANTATA_RUNNING=1 - pkill -f cantata -fi - -# echo stopping pipewire-media-session... -# systemctl --user stop pipewire-media-session +echo stopping pipewire-media-session... +systemctl --user stop pipewire-media-session echo stopping pipewire... systemctl --user stop pipewire -echo stopping mpDris2... -systemctl --user stop mpd-mpris -echo stopping mpd... -systemctl --user stop mpd -echo starting mpd... -systemctl --user start mpd -echo starting mpDris2... -systemctl --user start mpd-mpris +echo starting pipewire... +systemctl --user start pipewire +echo starting pipewire-media-session... +systemctl --user start pipewire-media-session -if [[ $CANTATA_RUNNING == 1 ]]; then - echo starting cantata... - cantata& &>/dev/null -fi