From 7bf1c38937c115a8dc087c008e860cc1d7a6d540 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 3 Jan 2026 18:28:46 -0800 Subject: [PATCH] Add extensions/menu.sh example --- config/omarchy/extensions/menu.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/omarchy/extensions/menu.sh diff --git a/config/omarchy/extensions/menu.sh b/config/omarchy/extensions/menu.sh new file mode 100644 index 00000000..e62f9580 --- /dev/null +++ b/config/omarchy/extensions/menu.sh @@ -0,0 +1,17 @@ +# Overwrite parts of the omarchy-menu with user-specific submenus. +# See $OMARCHY_PATH/bin/omarchy-menu for functions that can be overwritten. +# +# WARNING: Overwritten functions will obviously not be updated when Omarchy changes. +# +# Example adding suspend to the system menu: +# +# show_system_menu() { +# case $(menu "System" " Lock\n󱄄 Screensaver\n󰒲 Suspend\n󰜉 Restart\n󰐥 Shutdown") in +# *Lock*) omarchy-lock-screen ;; +# *Screensaver*) omarchy-launch-screensaver force ;; +# *Suspend*) systemctl suspend ;; +# *Restart*) omarchy-cmd-reboot ;; +# *Shutdown*) omarchy-cmd-shutdown ;; +# *) back_to show_main_menu ;; +# esac +# }