From 6513db1bdd0cc0cef65153598c5fd6907ef1d523 Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Wed, 9 Jul 2025 19:07:28 +1000 Subject: [PATCH 1/2] Add gum confirm to omarchy-refresh-waybar --- bin/omarchy-refresh-waybar | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/omarchy-refresh-waybar b/bin/omarchy-refresh-waybar index 4193870..56c3bd1 100755 --- a/bin/omarchy-refresh-waybar +++ b/bin/omarchy-refresh-waybar @@ -1,5 +1,7 @@ #!/bin/bash +gum confirm "Refresh Waybar config? This will replace your current Waybar settings with Omarchy defaults." || exit 0 + # Overwrite local waybar settings with the latest in Omarchy cp -f ~/.local/share/omarchy/config/waybar/config ~/.config/waybar/ 2>/dev/null cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null From 77e2e5f61e532498f7a65220f307b0663e7fb102 Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Thu, 10 Jul 2025 06:59:06 +1000 Subject: [PATCH 2/2] Refactor omarchy-refresh-waybar to use conditional confirmation --- bin/omarchy-refresh-waybar | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/omarchy-refresh-waybar b/bin/omarchy-refresh-waybar index 56c3bd1..8f442a7 100755 --- a/bin/omarchy-refresh-waybar +++ b/bin/omarchy-refresh-waybar @@ -1,11 +1,11 @@ #!/bin/bash -gum confirm "Refresh Waybar config? This will replace your current Waybar settings with Omarchy defaults." || exit 0 +if gum confirm "Refresh Waybar config? This will replace your current Waybar settings with Omarchy defaults."; then + # Overwrite local waybar settings with the latest in Omarchy + cp -f ~/.local/share/omarchy/config/waybar/config ~/.config/waybar/ 2>/dev/null + cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null -# Overwrite local waybar settings with the latest in Omarchy -cp -f ~/.local/share/omarchy/config/waybar/config ~/.config/waybar/ 2>/dev/null -cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null - -# Restart waybar -pkill waybar &>/dev/null -setsid waybar &>/dev/null & + # Restart waybar + pkill waybar &>/dev/null + setsid waybar &>/dev/null & +fi