osu/run.sh

24 lines
666 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-06-10 16:33:29 +02:00
BASEDIR="$(dirname $(realpath -s $0))"
2020-09-13 14:45:38 +02:00
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"
2020-06-10 16:33:29 +02:00
2024-05-09 02:35:21 +02:00
podman run \
2020-06-10 16:33:29 +02:00
--rm \
-it \
--name osu \
2024-05-09 02:35:21 +02:00
--userns="keep-id:uid=$(id -u),gid=$(id -g)" \
2020-06-10 16:33:29 +02:00
--device /dev/dri \
--group-add $(getent group audio|cut -d: -f3) \
2020-08-25 13:19:30 +02:00
--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 \
2024-05-09 02:35:21 +02:00
-v "$HOME/.local/share/osu/:/home/osu/.local/share/osu/" \
2020-06-10 16:33:29 +02:00
-v "$BASEDIR/import/:$BASEDIR/import/" \
2020-08-25 13:19:30 +02:00
-v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \
-v "${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}" \
2024-05-09 02:35:21 +02:00
osu \
2020-06-10 16:33:29 +02:00
$@