This commit is contained in:
thek4n 2026-02-20 01:39:40 +03:00
parent 41be339450
commit 30fa651030
2 changed files with 1 additions and 17 deletions

View File

@ -12,4 +12,4 @@ cleanup() {
}
trap cleanup EXIT TERM INT
exec mpv --idle --no-video --input-ipc-server="${SOCKET_PATH}" --ytdl-format=worstaudio
exec mpv --really-quiet --idle --no-video --input-ipc-server="${SOCKET_PATH}" --ytdl-format=worstaudio

View File

@ -1,16 +0,0 @@
#!/bin/sh
set -eux
readonly SESSION=music
readonly MAINW=music
readonly WORKING_PROJECT="${HOME}"
if ! tmux has-session -t="${SESSION}"; then
tmux new-session -s "${SESSION}" -d -n "${MAINW}" -c "${WORKING_PROJECT}"
tmux rename-window -t "${SESSION}:1" "${MAINW}"
tmux send-keys -t "${SESSION}:${MAINW}.1" "player run music" Enter
fi
tmux switch-client -t "${SESSION}"