mpv_delayed_quit/README.md
2024-11-21 20:03:39 +01:00

782 B

This is a small script for the media player mpv. Instead of an instant quit with q, it allows you to delay quitting at the end of the current track by pressing alt+q.

Installation

git clone https://code.bugness.org/chl/mpv_delayed_quit ~/.config/mpv/scripts/delayed_quit

Or download the Lua file and put it in the directory ~/.config/mpv/scripts/delayed_quit/.

Usage

  • alt+q : make mpv quit at the end of the current file (or the counter-th file) in the playlist. Press again to forgo.

You can also make it quit at the end of the next n-th file, using those key bindings:

  • alt+a : decrement the counter, so mpv will quit one file sooner,
  • alt+shift+a : increment the counter, so mpv will quit one file later.