From 74473f5650297d2c9d9f20eaf79cff958bbf2325 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Thu, 23 Oct 2025 17:23:05 -0400 Subject: [PATCH] Add omarchy-refresh-limine --- bin/omarchy-refresh-limine | 34 ++++++++++++++++++++++++++++++++++ bin/omarchy-reinstall | 4 ++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100755 bin/omarchy-refresh-limine diff --git a/bin/omarchy-refresh-limine b/bin/omarchy-refresh-limine new file mode 100755 index 00000000..0e1bf7f2 --- /dev/null +++ b/bin/omarchy-refresh-limine @@ -0,0 +1,34 @@ +#!/bin/bash + +if [[ -f /boot/EFI/linux/omarchy_linux.efi ]] && [[ -f /boot/EFI/linux/$(cat /etc/machine-id)_linux.efi ]]; then + echo "Cleanup extra UKI" + sudo rm -f /boot/EFI/Linux/$(cat /etc/machine-id)_linux.efi +fi +echo "Resetting limine config" + +sudo mv /boot/limine.conf /boot/limine.conf.bak + +sudo tee /boot/limine.conf </dev/null +### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md +#timeout: 3 +default_entry: 2 +interface_branding: Omarchy Bootloader +interface_branding_color: 2 +hash_mismatch_panic: no + +term_background: 1a1b26 +backdrop: 1a1b26 + +# Terminal colors (Tokyo Night palette) +term_palette: 15161e;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;a9b1d6 +term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5 + +# Text colors +term_foreground: c0caf5 +term_foreground_bright: c0caf5 +term_background_bright: 24283b + +EOF + +sudo limine-update +sudo limine-snapper-sync diff --git a/bin/omarchy-reinstall b/bin/omarchy-reinstall index 8119255e..c95c8292 100755 --- a/bin/omarchy-reinstall +++ b/bin/omarchy-reinstall @@ -19,6 +19,6 @@ if gum confirm "Are you sure you want to reinstall and lose all config changes?" cp ~/.local/share/omarchy/default/bashrc ~/.bashrc echo '[[ -f ~/.bashrc ]] && . ~/.bashrc' | tee ~/.bash_profile >/dev/null - # TODO: Should reset limine - # TODO: Should reset plymouth + omarchy-refresh-limine + omarchy-refresh-plymouth fi