Compare commits
1 Commits
f895f2b2f3
...
54ee85d052
Author | SHA1 | Date | |
---|---|---|---|
54ee85d052 |
@ -1,28 +0,0 @@
|
||||
#!/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...
|
||||
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
|
||||
|
||||
if [[ $CANTATA_RUNNING == 1 ]]; then
|
||||
echo starting cantata...
|
||||
cantata& &>/dev/null
|
||||
fi
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -eoux pipefail
|
||||
|
||||
# uses mpc to manually trigger a mpd update
|
||||
mpc -h localhost -p 6600 --password update
|
Loading…
Reference in New Issue
Block a user