19 lines · 581 B · Lua
RawDownload
--makes mpv disable ontop when pausing and re-enable it again when resuming playback--please note that this won't do anything if ontop was not enabled before pausing local was_ontop = false mp.observe_property("pause", "bool", function(_, value)    local ontop = mp.get_property_native("ontop")    if value then        if ontop then            mp.set_property_native("ontop", false)            was_ontop = true        end    else        if was_ontop and not ontop then            mp.set_property_native("ontop", true)        end        was_ontop = false    endend)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t