Ventoy
Ventoy copied to clipboard
Update theme.txt
以背景图片的原始比例显示背景图片。
以背景图片的原始比例显背景图 fotoğrafları.
- boot_menu How to apply in
Set resolution max.
Another solution, (need a background.png
of 16:9
)
https://github.com/M-L-P/theme-ventoy/blob/main/ventoy/themes/ventoy/theme.txt
💻️Preview👀
1024x768
1920x1080
Your theme configuration is very nice. Thank you for the information.
- boot_menu
Around yours,
Adjust again to accommodate maximum resolution
width = xxx
height = yyy
- boot_menu { left = 20% width = 60% top = 20% height = 55%
The setting is nice according to 1024x768 resolution, 1920x1080 as in the second picture
hello @1457384613gh master; I apologize for not sending a notification to the appropriate place. I'm following your projects, please I need your help on something, can you help me? Since my computer is limited, I do not have the opportunity to recompile the vento. Could you please make the following changes and compile the vento and send it to me? Thank you in advance and I wish you success in your work.
https://github.com/ventoy/Ventoy/blob/c8dc36a5c3bb042d92a04304caaa7fa7249d9d2e/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c#L370C9-L384C10
{
grub_snprintf(node->menuentry, sizeof(node->menuentry),
"menuentry \"%-10s [%s]\" --class=vtoydir {\n"
" set browser_dir=0x%lx \n"
" vt_browser_dir %s ${browser_dir} \"%s/%s\"\n"
"}\n",
"DIR", filename, (ulong)g_menu_fs, g_menu_device, g_menu_path_buf, filename);
}
else
{
grub_snprintf(node->menuentry, sizeof(node->menuentry),
"menuentry \"[%s]\" --class=vtoydir {\n"
" set browser_dir=0x%lx \n"
" vt_browser_dir %s ${browser_dir} \"%s/%s\"\n"
"}\n",
filename, (ulong)g_menu_fs, g_menu_device, g_menu_path_buf, filename);
}
You can make a fork, and then click "actions".
And I don't know what you want me test.
You can make a fork, and then click "actions".
And I don't know what you want me test.
I made the necessary adjustments in ventoy grub.cfg, only ventoy vt_browser.c needs to be changed and ventoy needs to be recreated. I logged in via tlf.
I opened a discussion here, please take a look. https://forums.ventoy.net/showthread.php?tid=2604
I have read something on forums, but I have still not understood, yet.
I just see DIR
deleted.
Would you like filename to be the title of menuentry?
Can you apply the code I gave above to the vt_browser.c file and prepare a cli version?
I made a short video, could you watch it? https://disk.yandex.com.tr/i/cWzwLX-O24yJ7A
Oh my god, you are a genius. Tell me how to make it snow. Can I try your fm? And I will give what you need tomorrow, because it is midnight where I am now.
Thank you my friend. Here it shows 19:30 in the evening. I hope to see you tomorrow. I wish you a good night.
I hope to see you tomorrow.
Then you can download it by yourself. https://github.com/1457384613gh/Ventoy/actions/runs/6078716761
I hope to see you tomorrow.
Then you can download it by yourself. https://github.com/1457384613gh/Ventoy/actions/runs/6078716761
Thank you very much my friend, I tested the new build, but the command vt_browser_dir hd0.5 ${browser_dir} / did not work, so it does not get the value 0x%lx=${browser_dir} I guess is there something we missed in the command, do you have any ideas?
I have still not understood your purpose, yet, namely, what you want to achieve.
What is your goal?
vt_browser_dir hd0.5 ${browser_dir} /
vt_browser_dir (hd0,5) $
In Ventoy, we can see the disk partitions with the F2 key, or when we press the e key on any partition, we see a command like vt_browser_dir hd0,1 0x012345678 / I bought this command line, I want to use it in another configuration (.cfg) file. It varies in each partition structure up to disk. so, is it possible to give a name to the 0x%lx value and get our command by typing it like this? set browser_dir=0x%lx vt_browser_dir hd0,gpt5 ${browser_dir} /
I tried to explain with a picture, I hope I could express what I want to do. I'm sorry if it's causing errors as I'm using translation.
(https://github.com/ventoy/Ventoy/assets/72962883/cb9e5a5e-7f4b-4c13-840b-a88fc4e3cc59)
Is it as if we pin a folder to startup menu?
"/" is not DIR there; "/" is as a DISK.
Line 194~208
if (ventoy_get_fs_type(fs->name) >= ventoy_fs_max)
{
browser_ssprintf(mbuf, "menuentry \"%s\" --class=vtoydisk {\n"
" echo \"unsupported file system type!\" \n"
" ventoy_pause\n"
"}\n",
title);
}
else
{
browser_ssprintf(mbuf, "menuentry \"%s\" --class=vtoydisk {\n"
" vt_browser_dir %s,%d 0x%lx /\n"
"}\n",
title, disk->name, partition->number + 1, (ulong)fs);
}
When added to line 208, F2 browser causes disk corruption, I leave the F2 key working normally, I write the following line to grub.cfg, source ${prefix}/main.cfg in main.cfg vt_browser_dir (hd0,gpt5) 0x12345678 / When I log in to gpt5 with this command, everything works perfectly, but when I insert my memory into a different pc, 0x12345678 value is different, so it does not log into any part of the hdd. so name 0x%lx with a name and eg. I want to run it by typing vt_browser_dir (hd0,gpt*) $browser_dir / .
You should use regular expressions.
set browser_dir-> ? %s->g_menu_device 0x%lx->(ulong)g_menu_fs %s/%s->g_menu_path_buf
Is the match correct?
I am not the machine, so I don't know. You should try and test.
when i solve this problem i will send the project to you for testing.
when i solve this problem i will send the project to you for testing.
Thank you. May I know how to snow before you will have finished it?
when i solve this problem i will send the project to you for testing.
Thank you. May I know how to snow before you will have finished it?
@a1ive master's Grub2Fm also has this feature. It is made using image files that you will obtain from a gif file. First, type the following command in grub2 fm's init.sh export grub_frame_speed=110; Also, in the theme/slack folder, it is sufficient to write the following expressions in the fm.txt file according to your own filenames.
- animation { dir_name = Turkish image_format = jpg size_ratio = 1 frame_number = 35 left = 0% width = 100% top = 0% height = 100% }
How to draw so much snow?