From 35cc9937ffdb2ce786087519390b0d9efda07aaf Mon Sep 17 00:00:00 2001 From: Ofir Miller Date: Sun, 12 Oct 2025 23:34:50 +0300 Subject: [PATCH] feat(update): Add firmware update script to update process (#2014) * Add firmware update script and include in update process * typo * type 2 * add sudo * Add firmware update option to update menu * Remove firmware update command from update process * Lazy-install firmware updater * Move option down and change icon * Only lazy install if missing --------- Co-authored-by: David Heinemeier Hansson --- bin/omarchy-menu | 3 ++- bin/omarchy-update-firmware | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-update-firmware diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 4526d5d1..2da22ad2 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -385,13 +385,14 @@ show_remove_menu() { } show_update_menu() { - case $(menu "Update" " Omarchy\n Branch\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Password\n Timezone") in + case $(menu "Update" " Omarchy\n Branch\n Config\n󰸌 Extra Themes\n Process\n󰇅 Hardware\n Firmware\n Password\n Timezone") in *Omarchy*) present_terminal omarchy-update ;; *Branch*) show_update_branch_menu ;; *Config*) show_update_config_menu ;; *Themes*) present_terminal omarchy-theme-update ;; *Process*) show_update_process_menu ;; *Hardware*) show_update_hardware_menu ;; + *Firmware*) present_terminal omarchy-update-firmware ;; *Timezone*) omarchy-cmd-tzupdate ;; *Password*) show_update_password_menu ;; *) show_main_menu ;; diff --git a/bin/omarchy-update-firmware b/bin/omarchy-update-firmware new file mode 100755 index 00000000..dbcb8f53 --- /dev/null +++ b/bin/omarchy-update-firmware @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e +echo -e "\e[32mUpdate Firmare\e[0m" + +if omarchy-cmd-missing fwupdmgr; then + omarchy-pkg-add fwupd +fi + +fwupdmgr refresh +sudo fwupdmgr update