(01-23-2023, 06:09 PM)nguyen ha thai trong Wrote:(01-23-2023, 06:02 AM)hyun9358 Wrote: I want to make the power on and off function work directly with F11 and F12. How do I use a hotkey?elif [ "$vtHotkey" = "F6" ]; then
ventoy_ext_menu
elif [ "$vtHotkey" = "F11" ]; then
sleep 1
reboot
elif [ "$vtHotkey" = "F12" ]; then
sleep 1
halt
fi
======================================================================
if [ "$vtHotkey" = "F2" ]; then
unset timeout
vt_browser_disk
elif [ "$vtHotkey" = "F4" ]; then
ventoy_localboot
elif [ "$vtHotkey" = "F5" ]; then
ventoy_diagnosis
elif [ "$vtHotkey" = "F6" ]; then
ventoy_ext_menu
elif [ "$vtHotkey" = "F11" ]; then
echo -e "\n $VTLANG_System_rebooting \n"
sleep 1
reboot
elif [ "$vtHotkey" = "F12" ]; then
echo -e "\n $VTLANG_System_halting \n"
sleep 1
halt
fi
I put it in grub.cfg but it doesn't work.
how does it work?
The L key is the language output key, how does it work?
If this is the case, wouldn't it be possible to apply it?
hotkey
|
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
RE: hotkey - by nguyen ha thai trong - 01-23-2023, 06:09 PM
RE: hotkey - by serhat100 - 01-23-2023, 07:19 PM
RE: hotkey - by hyun9358 - 01-23-2023, 07:32 PM
RE: hotkey - by nguyen ha thai trong - 01-24-2023, 06:35 AM
RE: hotkey - by AlexBryansk - 01-25-2023, 03:27 AM
RE: hotkey - by hyun9358 - 01-25-2023, 01:13 PM
|
Users browsing this thread: 2 Guest(s)