osu/run.sh
Simon Bruder 855a0d121a
run.sh: Remove latency offset
It was hardcoded to nunotaba and should rather be set outside of the
script (and with other methods).
2024-05-09 02:25:16 +02:00

23 lines
618 B
Bash
Executable file

#!/usr/bin/env bash
BASEDIR="$(dirname $(realpath -s $0))"
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"
docker run \
--rm \
-it \
--name osu \
--device /dev/dri \
--group-add $(getent group audio|cut -d: -f3) \
--group-add $(getent group video|cut -d: -f3) \
-e PULSE_COOKIE=/run/pulse/cookie \
-e PULSE_SERVER=/run/user/$(id -u)/pulse/native \
-e WAYLAND_DISPLAY \
-e XDG_RUNTIME_DIR \
-v "$HOME/.local/share/osu/:/home/osu/osu/" \
-v "$BASEDIR/import/:$BASEDIR/import/" \
-v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \
-v "${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}" \
r.sbruder.de/osu \
$@