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