Unified done showing and command style

This commit is contained in:
David Heinemeier Hansson 2025-08-04 20:51:43 +02:00
parent 82bcee5624
commit 8170cb9ed4
14 changed files with 23 additions and 13 deletions

View File

@ -2,4 +2,4 @@
yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75% | xargs -ro yay -S --noconfirm yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75% | xargs -ro yay -S --noconfirm
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -2,4 +2,4 @@
yay -Qqe | fzf --multi --preview 'yay -Qi {1}' --preview-window=down:75% | xargs -ro yay -Rns --noconfirm yay -Qqe | fzf --multi --preview 'yay -Qi {1}' --preview-window=down:75% | xargs -ro yay -Rns --noconfirm
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -13,4 +13,4 @@ if [[ -n "$font" ]]; then
sed -i "s/family = \".*\"/family = \"$font\"/g" ~/.config/alacritty/alacritty.toml sed -i "s/family = \".*\"/family = \"$font\"/g" ~/.config/alacritty/alacritty.toml
fi fi
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -16,4 +16,4 @@ if [[ -n "$choices" ]]; then
done done
fi fi
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -9,3 +9,5 @@ yay -S --noconfirm --needed \
echo "Starting Dropbox..." echo "Starting Dropbox..."
uwsm app -- dropbox-cli start &>/dev/null & uwsm app -- dropbox-cli start &>/dev/null &
echo "See Dropbox icon behind  hover tray in top right and right-click for setup." echo "See Dropbox icon behind  hover tray in top right and right-click for setup."
~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -33,3 +33,5 @@ else
fi fi
fi fi
fi fi
~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -43,3 +43,5 @@ EOF
fi fi
fi fi
fi fi
~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -9,3 +9,5 @@ sudo pacman -Sy
echo "Now pick dependencies matching your graphics card" echo "Now pick dependencies matching your graphics card"
yay -S steam yay -S steam
gtk-launch steam >/dev/null 2>&1 & gtk-launch steam >/dev/null 2>&1 &
~/.local/share/omarchy/bin/omarchy-show-done

4
bin/omarchy-show-done Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
echo
gum spin --spinner "globe" --title "Done!" -- sleep 2

View File

@ -30,5 +30,5 @@ NEXT_INDEX=$(((INDEX + 1) % TOTAL))
NEW_THEME=${THEMES[$NEXT_INDEX]} NEW_THEME=${THEMES[$NEXT_INDEX]}
NEW_THEME_NAME=$(basename "$NEW_THEME") NEW_THEME_NAME=$(basename "$NEW_THEME")
"$HOME/.local/share/omarchy/bin/omarchy-theme-set" $NEW_THEME_NAME ~/.local/share/omarchy/bin/omarchy-theme-set $NEW_THEME_NAME
notify-send "Theme changed to $NEW_THEME_NAME" -t 2000 notify-send "Theme changed to $NEW_THEME_NAME" -t 2000

View File

@ -24,10 +24,9 @@ fi
# Use readlink -f to resolve symlinks and get the absolute path # Use readlink -f to resolve symlinks and get the absolute path
if [ "$(readlink -f "$CURRENT_DIR/theme")" = "$(readlink -f "$THEME_PATH")" ]; then if [ "$(readlink -f "$CURRENT_DIR/theme")" = "$(readlink -f "$THEME_PATH")" ]; then
"$HOME/.local/share/omarchy/bin/omarchy-theme-next" ~/.local/share/omarchy/bin/omarchy-theme-next
fi fi
# Now remove the theme directory and backgrounds for THEME_NAME # Now remove the theme directory and backgrounds for THEME_NAME
rm -rf "$THEME_PATH" rm -rf "$THEME_PATH"
rm -rf "$BACKGROUND_PATH" rm -rf "$BACKGROUND_PATH"

View File

@ -44,11 +44,11 @@ touch "$HOME/.config/alacritty/alacritty.toml"
# Restart components to apply new theme # Restart components to apply new theme
pkill -SIGUSR2 btop pkill -SIGUSR2 btop
"$HOME/.local/share/omarchy/bin/omarchy-restart-waybar" ~/.local/share/omarchy/bin/omarchy-restart-waybar
pkill swayosd-server pkill swayosd-server
setsid uwsm app -- swayosd-server &>/dev/null & setsid uwsm app -- swayosd-server &>/dev/null &
makoctl reload makoctl reload
hyprctl reload hyprctl reload
# Set new background # Set new background
"$HOME/.local/share/omarchy/bin/omarchy-theme-bg-next" ~/.local/share/omarchy/bin/omarchy-theme-bg-next

View File

@ -6,5 +6,4 @@ for dir in ~/.config/omarchy/themes/*/; do
[ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull [ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull
done done
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done

View File

@ -13,7 +13,7 @@ git -C $omarchy_path pull --autostash
git -C $omarchy_path diff --check || git -C $omarchy_path reset --merge git -C $omarchy_path diff --check || git -C $omarchy_path reset --merge
# Run migrations # Run migrations
"$HOME/.local/share/omarchy/bin/omarchy-migrate" ~/.local/share/omarchy/bin/omarchy-migrate
# Update system packages # Update system packages
echo -e "\e[32m\nUpdate system packages\e[0m" echo -e "\e[32m\nUpdate system packages\e[0m"
@ -24,4 +24,4 @@ if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $
gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now
fi fi
gum spin --spinner "globe" --title "Done!" -- sleep 2 ~/.local/share/omarchy/bin/omarchy-show-done