MPV plugin/script : quit at the end of the current playlist item.
Find a file
2024-11-21 20:03:39 +01:00
LICENSE Initial commit 2024-02-06 01:17:46 +01:00
main.lua Actually, this key binding is easier to memorize 2024-02-07 00:18:45 +01:00
README.md readme: reformulation. 2024-11-21 20:03:39 +01:00

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.