Merge pull request #101 from npenza/add-gum-confirm-to-omarchy-refresh-waybar

Add gum confirm to omarchy-refresh-waybar
This commit is contained in:
David Heinemeier Hansson 2025-07-09 21:00:53 -04:00 committed by GitHub
commit 3d4198d691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,11 @@
#!/bin/bash
# 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
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
# Restart waybar
pkill waybar &>/dev/null
setsid waybar &>/dev/null &
# Restart waybar
pkill waybar &>/dev/null
setsid waybar &>/dev/null &
fi