01-25-2023, 01:13 PM
(01-25-2023, 03:27 AM)AlexBryansk Wrote: currently, the f11 and f12 buttons are not working. But this can be done with different spomobs:
1. Make changes to longpanda.
2. Change menu.c yourself and compile.
3. I can add to my mod_Ventoy, but then I will have to use something other than the original.
4. Abandon f11 and f12. And to do as it was in the early versions of ventoy (somewhere before 1.0.67), the power menu was called by f2. And add ventoy- browers to the main menu. All changes of clause 4 in grub.conf.
submenu " ventoy browser" --class=iconFM {
if [ "$VTOY_THEME_FMV" != "" ]; then
if [ -f ${vt_plugin_path}${VTOY_THEME_FMV} ]; then
set theme=${vt_plugin_path}${VTOY_THEME_FMV}
fi
fi
unset timeout
set VTOY_MENU_TIP_ENABLE=0
vt_browser_disk
}
......
if [ "$vtHotkey" = "F2" ]; then
ventoy_power
elif [ "$vtHotkey" = "F4" ]; then
ventoy_localboot
elif [ "$vtHotkey" = "F5" ]; then
ventoy_diagnosis
elif [ "$vtHotkey" = "F6" ]; then
ventoy_ext_menu
elif [ "$vtHotkey" = "F9" ]; then
ventoy_info
fi
vt_fn_mutex_lock 0
unset timeout
unset default
fi
fi
You can see the implementation of clause 4 in mod_ventoy 1.0.80
================================================================
Can't we add this feature in the next version?
I wish it was added.