zenyd / mpv-scripts

Scripts for the mpv media player
GNU General Public License v3.0
167 stars 29 forks source link

Speedup-Transition - How can I enable this ON by default (not have to hit Ctrl+J?) #22

Closed EliCodesForFun closed 6 months ago

EliCodesForFun commented 3 years ago

Hello,

I was wondering how I can enable this add-on to automatically be on (as if I had pressed Ctrl+J upon startup). I've been trying to figure this out in via a .conf file or by editing the addon, I'm just kinda dumb on this.

Thanks, Vlad

EDIT I figured it out. I simply added this to the very bottom of the script:

toggle()

This makes it so that the toggle command is run on startup, after the hotkey commands have been created for mpv.toggle()

zenyd commented 6 months ago

Or put toggle() at the end of reset_on_file_load() should also work.