mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user