feat: allow overloading for the about menu action via the ~/.config/omarchy/extensions/menu.sh file. Example included (#4311)

Co-authored-by: Bhavesh Sooka <bhavesh@synthesis.co.za>
This commit is contained in:
Bhavesh Sooka
2026-01-31 19:14:25 +02:00
committed by GitHub
parent d9bd4a8db3
commit ff2a47c67e
2 changed files with 11 additions and 1 deletions

View File

@@ -576,6 +576,10 @@ show_main_menu() {
go_to_menu "$(menu "Go" "󰀻 Apps\n󰧑 Learn\n󱓞 Trigger\n Style\n Setup\n󰉉 Install\n󰭌 Remove\n Update\n About\n System")"
}
show_about() {
omarchy-launch-about
}
go_to_menu() {
case "${1,,}" in
*apps*) walker -p "Launch…" ;;
@@ -592,7 +596,7 @@ go_to_menu() {
*install*) show_install_menu ;;
*remove*) show_remove_menu ;;
*update*) show_update_menu ;;
*about*) omarchy-launch-about ;;
*about*) show_about ;;
*system*) show_system_menu ;;
esac
}

View File

@@ -12,3 +12,9 @@
# *) back_to show_main_menu ;;
# esac
# }
#
# Example of overriding just the about menu action: (Using zsh instead of bash (default))
#
# show_about() {
# exec omarchy-launch-or-focus-tui "zsh -c 'fastfetch; read -k 1'"
# }