Skip to content

Instantly share code, notes, and snippets.

View sephid86's full-sized avatar

시티에이스 sephid86

  • Republic Korea. Seoul
View GitHub Profile
@sephid86
sephid86 / remember-volume.lua
Last active August 23, 2023 12:47 — forked from blackarcher21/remember-volume.lua
mpv script - remember audio volume
local filepath = mp.command_native({"expand-path", "~/mpv_volume"})
local loadfile = io.open(filepath, "r")
if loadfile then
set_volume = string.sub(loadfile:read(), 8)
loadfile:close()
mp.set_property_number("volume", set_volume)
end