Skip to content

Instantly share code, notes, and snippets.

View goetzc's full-sized avatar
🕉️

Götz goetzc

🕉️
View GitHub Profile
@goetzc
goetzc / on_pause_show_progress_bar.lua
Created August 12, 2016 05:23
mpv script to show the progress bar on pause.
-- mpv script to show the progress bar on pause. --
function on_pause(name, value)
if value == true then
mp.command("show-progress")
end
end
mp.observe_property("pause", "bool", on_pause)
@goetzc
goetzc / subdl.lua
Last active September 9, 2016 20:49 — forked from gim-/subdl.lua
Automatically download subtitles in mpv using subdl.
-- mpv script to download subtitles using subdl.
-- requires subdl (2016 Sep master branch): https://github.com/alexanderwink/subdl
-- default keybinding: B (capital B)
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding subdl_load_subs
local utils = require 'mp.utils'
function subdl_load()