Switch to pacman to make it clear when we are not depending on AUR

This commit is contained in:
David Heinemeier Hansson
2025-08-24 17:35:24 +02:00
parent 69afedf380
commit 9d739faf2b
36 changed files with 42 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
echo "Add missing installation of bat (used by the ff alias)"
if ! command -v bat &>/dev/null; then
# Add missing installation of bat
yay -S --noconfirm --needed bat
sudo pacman -S --noconfirm --needed bat
fi

View File

@@ -1,5 +1,5 @@
echo "Installing missing fd terminal tool for finding files"
if ! command -v fd &>/dev/null; then
yay -S --noconfirm --needed fd
sudo pacman -S --noconfirm --needed fd
fi

View File

@@ -2,7 +2,7 @@ echo "Switching from vlc to mpv for the default video player"
if ! command -v mpv &>/dev/null; then
yay -Rns --noconfirm vlc
rm ~/.local/share/applications/vlc.desktop
yay -S --noconfirm mpv
sudo pacman -S --noconfirm mpv
xdg-mime default mpv.desktop video/mp4
xdg-mime default mpv.desktop video/x-msvideo
xdg-mime default mpv.desktop video/x-matroska

View File

@@ -1,5 +1,5 @@
echo "Install ffmpegthumbnailer for video thumbnails in the file manager"
if ! command -v ffmpegthumbnailer &>/dev/null; then
yay -S --noconfirm --needed ffmpegthumbnailer
sudo pacman -S --noconfirm --needed ffmpegthumbnailer
fi

View File

@@ -1,5 +1,5 @@
echo "Install bash-completion"
if ! pacman -Q bash-completion &>/dev/null; then
yay -S --noconfirm --needed bash-completion
sudo pacman -S --noconfirm --needed bash-completion
fi

View File

@@ -1,6 +1,6 @@
echo "Install Impala as new wifi selection TUI"
if ! command -v impala &>/dev/null; then
yay -S --noconfirm --needed impala
sudo pacman -S --noconfirm --needed impala
echo "You need to update the Waybar config to use Impala Wi-Fi selector in top bar."
omarchy-refresh-waybar
fi

View File

@@ -1,5 +1,5 @@
echo "Adding gnome-keyring to make 1password work with 2FA codes"
if ! command -v gnome-keyring &>/dev/null; then
yay -S --noconfirm --needed gnome-keyring
sudo pacman -S --noconfirm --needed gnome-keyring
fi

View File

@@ -1,6 +1,6 @@
echo "Switching to polkit-gnome for better fingerprint authentication compatibility"
if ! command -v /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &>/dev/null; then
yay -S --noconfirm --needed polkit-gnome
sudo pacman -S --noconfirm --needed polkit-gnome
systemctl --user stop hyprpolkitagent
systemctl --user disable hyprpolkitagent
yay -Rns --noconfirm hyprpolkitagent

View File

@@ -1,5 +1,5 @@
echo "Install missing docker-buildx package for out-of-the-box Kamal compatibility"
if ! docker buildx version &>/dev/null; then
yay -S --noconfirm --needed docker-buildx
sudo pacman -S --noconfirm --needed docker-buildx
fi

View File

@@ -1,7 +1,7 @@
echo "Replace volume control GUI with a TUI"
if ! command -v wiremix &>/dev/null; then
yay -S --noconfirm --needed wiremix
sudo pacman -S --noconfirm --needed wiremix
yay -Rns --noconfirm pavucontrol
omarchy-refresh-applications

View File

@@ -1,4 +1,4 @@
echo "Remove needless fcitx5-configtool package"
if yay -Qe fcitx5-configtool &>/dev/null; then
if pacman -Qe fcitx5-configtool &>/dev/null; then
yay -Rns --noconfirm fcitx5-configtool
fi

View File

@@ -1,5 +1,5 @@
echo "Install satty for the new screenshot flow"
if ! command -v satty &>/dev/null; then
yay -S --noconfirm --needed satty
sudo pacman -S --noconfirm --needed satty
fi

View File

@@ -1,6 +1,6 @@
echo "Install swayOSD to show volume status"
if ! command -v swayosd-server &>/dev/null; then
yay -S --noconfirm --needed swayosd
sudo pacman -S --noconfirm --needed swayosd
setsid uwsm app -- swayosd-server &>/dev/null &
fi

View File

@@ -2,7 +2,7 @@ echo "Install wf-recorder for screen recording for nvidia"
if lspci | grep -qi 'nvidia'; then
if ! command -v wf-recorder &>/dev/null; then
yay -S --noconfirm --needed wf-recorder
sudo pacman -S --noconfirm --needed wf-recorder
fi
if command -v wl-screenrec &>/dev/null; then

View File

@@ -1,7 +1,7 @@
echo "Add icon theme coloring"
if ! yay -! yaru-icon-theme &>/dev/null; then
yay -S --noconfirm yaru-icon-theme
sudo pacman -S --noconfirm yaru-icon-theme
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"

View File

@@ -1,6 +1,6 @@
echo "Add hyprsunset blue light filter"
if ! command -v hyprsunset &>/dev/null; then
yay -S --noconfirm --needed hyprsunset
sudo pacman -S --noconfirm --needed hyprsunset
fi
omarchy-refresh-hyprsunset

View File

@@ -1,2 +1,2 @@
echo "Add support for accessing Android phone data via file manager"
yay -S --noconfirm --needed gvfs-mtp
sudo pacman -S --noconfirm --needed gvfs-mtp

View File

@@ -1,3 +1,3 @@
echo "Add xmlstarlet needed for updating fonts via Omarchy menu"
yay -Sy --noconfirm --needed xmlstarlet
sudo pacman -Sy --noconfirm --needed xmlstarlet

View File

@@ -1,6 +1,6 @@
echo "Add minimal starship prompt to terminal"
if ! command -v starship &>/dev/null; then
yay -S --noconfirm starship
sudo pacman -S --noconfirm starship
cp $OMARCHY_PATH/config/starship.toml ~/.config/starship.toml
fi

View File

@@ -1,5 +1,5 @@
echo "Add potentially missing dependency for power profile controls"
if ! yay -Q python-gobject &>/dev/null; then
yay -S --noconfirm python-gobject
if ! pacman -Q python-gobject &>/dev/null; then
sudo pacman -S --noconfirm python-gobject
fi

View File

@@ -1,5 +1,5 @@
echo "Install wf-recorder for intel based device"
if lspci | grep -Eqi 'nvidia|intel.*graphics'; then
yay -S --noconfirm --needed wf-recorder
sudo pacman -S --noconfirm --needed wf-recorder
fi

View File

@@ -1,3 +1,3 @@
echo "Ensure latest uwsm is installed"
yay -Sy --noconfirm uwsm
sudo pacman -Sy --noconfirm uwsm