#!/usr/bin/env bash
# AUTHOR: Daesorin
# CREATED: 2026-08-04 21:37 +0100

set -euo pipefail

# TERMINATE EXISTING PROCESSES
# ensure a clean state before starting
killall -q wireplumber pipewire-pulse pipewire mpd
sleep 1

# INITIALISE AUDIO DAEMONS
# start the core pipewire service
pipewire &
sleep 1

# start the session manager
wireplumber &

# start the pulseaudio compatibility layer
pipewire-pulse &

# START MUSIC PLAYER DAEMON
# launch the background daemon for local music
mpd &


