Skip to content

Instantly share code, notes, and snippets.

@sdasda7777
Last active April 27, 2025 12:52
Show Gist options
  • Save sdasda7777/3b6fdaa66171a851e2f2d5ffbe5f2d1b to your computer and use it in GitHub Desktop.
Save sdasda7777/3b6fdaa66171a851e2f2d5ffbe5f2d1b to your computer and use it in GitHub Desktop.
My `mpv.conf`
# Always display OSC when paused (https://github.com/mpv-player/mpv/issues/8107#issuecomment-2833268315)
[osc-when-paused]
profile-cond=pause
profile-restore=copy
script-opt=osc-visibility=always
# Always display OSC for audio files (https://github.com/mpv-player/mpv/issues/3500#issuecomment-2322175715)
[osc-when-audio]
profile-cond=not vid and vo_configured or p["current-tracks/video/albumart"]
script-opts-add=osc-visibility=always
# Set volume to 50 % on the first opened file if audio track (https://github.com/mpv-player/mpv/discussions/16292#discussioncomment-12960032)
[volume-when-audio]
profile-cond=playlist_pos == 0 and (not vid and vo_configured or p["current-tracks/video/albumart"])
volume=50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment