Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
507 stars 35 forks source link

SimpleBookmark - Force SimpleBookmark to be left-aligned #28

Closed Max-Enrik closed 2 years ago

Max-Enrik commented 2 years ago

I have set the OSD alignment to the right, but I need SimpleBookmark to be left-aligned. Is it possible to do it?

Where have I tried to fix it? (Unfortunately, I didn't make it happen by myself.)

Eisa01 commented 2 years ago

Wasn't aware there is right-alignment if feasible, I'll test and add the option to force left alignment. Thanks for reporting

Max-Enrik commented 2 years ago

That will be great.

Thank you for your scripts.

Max-Enrik commented 2 years ago

If there would be an option to adjust the y-position. That will be great too.

Eisa01 commented 2 years ago

Sure, I'll add it

Eisa01 commented 2 years ago

I added the option for alignment using numpad position. Download the updated script and configuration file and the issue should be resolved.

Additional Clarification:

In the configuration file, in List Design Settings section you will find list_alignment=7. The default value is 7 which means top left according to numpad shape. (e.g.: you can do 8 which means top middle, or 3 which means bottom right). You can fiddle around and see the 9 options.

Y-Position:

For the y-position it did not play nicely after adding the alignment option.

However, I have hack for you (if the 9 alignment options aren't enough). Go to List Design Settings section: Where it says header_text=šŸ”– Bookmarks [%cursor/%total] %prefilter%filter%afterfilter%presearch%search%aftersearch

Add before it \N to increase the Y-Position. the more \N you add the more it will increase. e.g.: header_text=\N\N\N\NšŸ”– Bookmarks [%cursor/%total] %prefilter%filter%afterfilter%presearch%search%aftersearch

Let me know if this solves both issues

Max-Enrik commented 2 years ago

Both work perfectly! Thank you very much.

Eisa01 commented 2 years ago

Glad to hear it =)