Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stupid question about key remapping #147

Open
utilop opened this issue Aug 19, 2022 · 6 comments
Open

Stupid question about key remapping #147

utilop opened this issue Aug 19, 2022 · 6 comments

Comments

@utilop
Copy link

utilop commented Aug 19, 2022

Everything works fine for me, but I would like to reassign the key from "c", for example, to "k", since there is another script for that key. I'm a noob and couldn't do it myself. Thank you!

@mikamidd
Copy link

Open the script with a text editor, go to line 8 and you should see this:
keybind = "W"
Change W to any keybind you want. Capitalization matters so "k" and "K" is not the same.
If you input "K" you'll have to use shift+k in mpv to access the script menu, with a small "k" no shift is needed and you can just press k to access the script.

@utilop
Copy link
Author

utilop commented Aug 29, 2022

@mikamidd I did not mean W, but I wanted to reassign "c" to "k"

@mikamidd
Copy link

Oh, you mean the crop function?
I believe it's this, line 2814:
["c"] = (function()
Change "c" to the hotkey you want. Note that this won't change the hotkey that's displayed in the script menu, so for consistency you'll have to change line 2734:
ass:append(tostring(bold('c:')) .. " crop\\N")
Change the 'c:' here to whatever hotkey you assigned your crop function to.

@utilop
Copy link
Author

utilop commented Aug 31, 2022

@mikamidd Thank you! Works.
изображение

@utilop
Copy link
Author

utilop commented Oct 24, 2022

@mikamidd
Forgive me for writing here, but I forgot how the script is activated initially, I barely remembered (Shift + W). I would like to indicate this in the description in the topic!
And so this is the best script, thanks!

@utilop
Copy link
Author

utilop commented Nov 27, 2023

@mikamidd Hello! I wanted to update the script, and the same question friend....
If possible, I would like it in the .conf file. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants