Thursday 8 October 2020

agFM v1.62 released

 agFM v1.62 has some bug fixes, language improvements and some new features and changes. The main change is that the first-letter auto-jump feature now works in grubfm as well as the startup menu.

The default agFM menu (\boot\grubfm\startup_default.cfg) now sets the three grub2 variables:

# disable menu hotkeys c and e
export grub_disable_console=1
export grub_disable_edit=1
# enable first letter auto-jump
export grub_enable_menu_jump=1

This means that the default startup menu will have the special grub2 menu hotkeys 'c' and 'e' disabled and also the menu jump feature is now enabled. This means that if you press the 'c' key, the first menu entry beginning with 'c' will be selected (instead of it going to the console).

If you do want the grub2 'c' and 'e' hotkeys to be enabled, you can hit the secret TAB key to re-enable them.

Hit the secret TAB hotkey to enable 'c' and 'e' hotkeys

In the above default menu, if you press the M key then Memtes86 will be selected. If you press the M key again the MEMTEST folder will be selected. If you press the M key again, the first MAINMENU folder entry will be selected.

Note that the first letter auto-jump feature also now works in the grubfm menus too!

The default grub2 text-mode menu title can be changed or removed using a new variable - grub_normal_menu_title, e.g.:

# set default grub2 menu title
export grub_normal_menu_title="Easy2Boot agFM [${grub_version}]"
This will only be seen in text-mode menus however and not when you are using a theme.

The 'Find file' hotkey which is used by the default Slack theme used by agFM has now been changed from 'F' to the key combination 'Ctrl+Shift+F':


This highlights another change in that the menuentry and hiddenentry grub2 commands can now take a hex key code as a hotkey.

# use ctrl+shift+f
hiddenentry " " --hotkey 0x02000046 {
  if [ -n "${grubfm_current_path}" ];
  then
export srcdir=$grubfm_current_path;
configfile $prefix/search.sh;
  else
export srcdir=(*);
configfile $prefix/search.sh;
  fi;
}

You can determine the key scan code for any key or key combination by using the grub2 getkey command:



User Start-up Menu

If you want to modify the default startup menu behaviour, then you can make your own menu using the \boot\grubfm\SAMPLE_startup_menu.txt file as a template or you can use the startup_default.cfg file as a template (but do not edit the original file!). 

Your new menu must be named \boot\grubfm\startup_menu.txt.

The eBook #4 has also been updated.

No comments:

Post a Comment