Compact profile cycle / toggle for mpv.
Copy profile-switcher.lua to ~~/scripts/.
Profiles must include profile-restore=copy-equal for restore to work.
# mpv.conf
[gpu-hq]
profile-restore=copy-equal
scale=ewa_lanczossharp
dscale=mitchellscript-message profile-cycle <profile1> <profile2> [...]
script-message profile-toggle <profile>
Cycles through listed profiles and an OFF step (all restored to defaults). Each press activates the next profile while restoring the previous one.
Toggles a single profile on/off.
F1 script-message profile-cycle gpu-hq upscale-anime sharpen
F2 script-message profile-toggle gpu-hq
| Press | Active profile |
|---|---|
| 1 | gpu-hq |
| 2 | upscale-anime |
| 3 | sharpen |
| 4 | (all off) |
| 5 | gpu-hq |