a1ive / grub2-filemanager

GRUB2-based file manager
https://a1ive.github.io/grub2-filemanager/
GNU General Public License v3.0
526 stars 106 forks source link

Add user-defined hotkeys #141

Closed steve6375 closed 4 years ago

steve6375 commented 4 years ago

I would like to add user-defined hotkeys into the agFM menu system.

For instance F8 to reload agFM and config file F9 to reboot F10 to Power off

so it works in the main agFM File Manager menu.

e.g. add a hiddentry with a --hotkey defined ?

How can I do this?

a1ive commented 4 years ago

not supported.

steve6375 commented 4 years ago

Could you not add a

source (${user})/boot/grubfg/config_fm

line to the main grubfm menu ?

One main issue if that if a user selects a file which does not boot correctly - the theme is lost and the menu is shown in text mode.

It would be nice to have a hotkey which would reload the main file (grubfmx64.efi or bootiax64.efi or grubfm.iso) - e.g. F8 same as in Easy2Boot. Also add other hiddenmenu entries using the config_fm file too.

a1ive commented 4 years ago

if a user selects a file which does not boot correctly - the theme is lost and the menu is shown in text mode.

and then you should reboot to boot another file.otherwise will cause memory leak.

steve6375 commented 4 years ago

but quicker to just reload grub2 and try that first. Some systems (servers) take many minutes to reboot.

a1ive commented 4 years ago

may not boot correctly.

steve6375 commented 4 years ago

It also might boot correctly and save having to reboot and wait 3 minutes for POST on a server.... ;-)

a1ive commented 4 years ago

Why not press [F4] and [R]?

steve6375 commented 4 years ago

Sometimes works - but how is the user to know? An F8 hotkey to 'reload' menu system would be useful? maybe chainloader (memdisk)/boot/grubfm/init.sh ??? or facility for user to add a config_fm file so it is up to the user to add hotkeys using hiddenentry menu ?

a1ive commented 4 years ago

An F8 hotkey to 'reload' menu system would be useful? maybe chainloader (memdisk)/boot/grubfm/init.sh ??? or facility for user to add a config_fm file so it is up to the user to add hotkeys using hiddenentry menu ?

no.I won't add support for user-defined hotkeys.

steve6375 commented 4 years ago

OK, thanks for your help anyway. I have made donation. Thanks for a great project 💯

a1ive commented 4 years ago

Thanks for your donation.