Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 hotkey
#2
(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
Reply


Messages In This Thread
hotkey - by hyun9358 - 01-23-2023, 06:02 AM
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

Forum Jump:


Users browsing this thread: 1 Guest(s)