diff options
author | A Farzat <a@farzat.xyz> | 2024-10-15 09:52:49 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-10-21 15:54:01 +0900 |
commit | 70658a514603212514e6a3c2d73b54e761ee89a5 (patch) | |
tree | dbd30b9b2bef6bb1c6cc450bcf92bea92ec27e2f /.config/mpv/scripts/print_filenames.lua | |
parent | debdff7e043ce2f9ef4da4809e6782ad7dc0bda2 (diff) | |
download | dotfiles-70658a514603212514e6a3c2d73b54e761ee89a5.tar.gz dotfiles-70658a514603212514e6a3c2d73b54e761ee89a5.zip |
Add mpv scripts
Diffstat (limited to '.config/mpv/scripts/print_filenames.lua')
-rw-r--r-- | .config/mpv/scripts/print_filenames.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/mpv/scripts/print_filenames.lua b/.config/mpv/scripts/print_filenames.lua new file mode 100644 index 0000000..ba43d6b --- /dev/null +++ b/.config/mpv/scripts/print_filenames.lua @@ -0,0 +1,5 @@ +if mp.get_opt("print_filenames") == "yes" then + for i = 0,mp.get_property("playlist-count")-1,1 + do print("STARTFILE:= " .. mp.get_property("playlist/" .. i .. "/filename")) + end +end |