Rip out the last remnants of AUR

This commit is contained in:
David Heinemeier Hansson 2025-08-25 07:04:43 +02:00
parent a67fc717c1
commit dfda4f895a
11 changed files with 32 additions and 58 deletions

View File

@ -16,15 +16,6 @@ screenrecording() {
if lspci | grep -Eqi 'nvidia|intel.*graphics'; then if lspci | grep -Eqi 'nvidia|intel.*graphics'; then
wf-recorder -f "$filename" -c libx264 -p crf=23 -p preset=medium -p movflags=+faststart "$@" wf-recorder -f "$filename" -c libx264 -p crf=23 -p preset=medium -p movflags=+faststart "$@"
else else
if ! command -v wl-screenrec >/dev/null; then
notify-send "Installing wl-screenrec in order to make screen recordings..."
if omarchy-pkg-aur-accessible; then
yay -S --noconfirm wl-screenrec
else
notify-send "Installing wl-screenrec failed due to AUR being unavailable..."
fi
fi
wl-screenrec -f "$filename" --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" "$@" wl-screenrec -f "$filename" --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" "$@"
fi fi
} }

View File

@ -1,13 +1,5 @@
#!/bin/bash #!/bin/bash
if ! command -v tzupdate &>/dev/null; then
if omarchy-pkg-aur-accessible; then
yay -S --noconfirm tzupdate
else
notify-send "Installing tzupdate failed due to AUR being unavailable..."
fi
fi
sudo tzupdate sudo tzupdate
new_timezone=$(timedatectl show -p Timezone --value) new_timezone=$(timedatectl show -p Timezone --value)
omarchy-restart-waybar omarchy-restart-waybar

View File

@ -1,11 +0,0 @@
#!/bin/bash
if omarchy-pkg-aur-accessible; then
yay -S --noconfirm --needed \
typora ttf-ia-writer \
tzupdate wl-screenrec python-terminaltexteffects
else
echo -e "\n\e[31mAUR is unavailable. Skipping installation of: 1password, Typora, tte, tzupdate !\e[0m"
echo "You will have to install these later when AUR is available."
sleep 5
fi

View File

@ -4,7 +4,8 @@ sudo pacman -S --noconfirm --needed \
gnome-calculator gnome-keyring signal-desktop \ gnome-calculator gnome-keyring signal-desktop \
obsidian libreoffice obs-studio kdenlive \ obsidian libreoffice obs-studio kdenlive \
1password-beta 1password-cli \ 1password-beta 1password-cli \
xournalpp localsend xournalpp localsend \
typora
# Packages known to be flaky or having key signing issues are run one-by-one # Packages known to be flaky or having key signing issues are run one-by-one
for pkg in spotify pinta; do for pkg in spotify pinta; do

View File

@ -4,6 +4,6 @@ sudo pacman -S --noconfirm --needed \
brightnessctl playerctl pamixer wiremix wireplumber \ brightnessctl playerctl pamixer wiremix wireplumber \
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \ fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
nautilus sushi ffmpegthumbnailer gvfs-mtp \ nautilus sushi ffmpegthumbnailer gvfs-mtp \
slurp satty wf-recorder \ slurp satty wf-recorder wl-screenrec \
mpv evince imv \ mpv evince imv \
walker-bin omarchy-chromium walker-bin omarchy-chromium

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
sudo pacman -S --noconfirm --needed \ sudo pacman -S --noconfirm --needed \
ttf-font-awesome ttf-cascadia-mono-nerd ttf-jetbrains-mono \ ttf-font-awesome ttf-cascadia-mono-nerd ttf-jetbrains-mono ttf-ia-writer \
noto-fonts noto-fonts-emoji noto-fonts-cjk noto-fonts-extra noto-fonts noto-fonts-emoji noto-fonts-cjk noto-fonts-extra
mkdir -p ~/.local/share/fonts mkdir -p ~/.local/share/fonts

View File

@ -6,5 +6,6 @@ sudo pacman -S --noconfirm --needed \
wl-clipboard fastfetch btop \ wl-clipboard fastfetch btop \
man tldr less whois plocate \ man tldr less whois plocate \
starship bash-completion \ starship bash-completion \
gum python-poetry-core \ gum python-poetry-core python-terminaltexteffects \
tzupdate \
alacritty alacritty

View File

@ -1,8 +1,5 @@
echo "Add Terminal Text Effects for rizzing Omarchy" echo "Add Terminal Text Effects for rizzing Omarchy"
if omarchy-pkg-aur-accessible; then
if ! yay -Q python-terminaltexteffects &>/dev/null; then if ! pacman -Q python-terminaltexteffects &>/dev/null; then
yay -S --noconfirm --needed python-terminaltexteffects sudo pacman -S --noconfirm python-terminaltexteffects
fi
else
echo -e "\n\e[31mAUR is unavailable. Install python-terminaltexteffects via AUR manually later.\e[0m"
fi fi

View File

@ -5,10 +5,8 @@ if ! pacman -Q ttf-cascadia-mono-nerd &>/dev/null; then
fc-cache fc-cache
fi fi
if omarchy-aur-accessible; then if ! pacman -Q ttf-ia-writer &>/dev/null; then
if ! yay -Q ttf-ia-writer &>/dev/null; then sudo pacman -S --noconfirm ttf-ia-writer
yay -S --noconfirm ttf-ia-writer
rm -rf ~/.local/share/fonts/iAWriterMonoS* rm -rf ~/.local/share/fonts/iAWriterMonoS*
fc-cache fc-cache
fi
fi fi

View File

@ -1,13 +1,9 @@
echo "Ensure TTE and dependencies are installed" echo "Ensure TTE and dependencies are installed"
if omarchy-pkg-aur-accessible; then if ! pacman -Q python-poetry-core &>/dev/null; then
if ! yay -Q python-poetry-core &>/dev/null; then sudo pacman -S --noconfirm python-poetry-core
yay -S --noconfirm python-poetry-core fi
fi
if ! pacman -Q python-terminaltexteffects &>/dev/null; then
if ! yay -Q python-terminaltexteffects &>/dev/null; then sudo pacman -S --noconfirm python-terminaltexteffects
yay -S --noconfirm python-terminaltexteffects
fi
else
echo -e "\n\e[31mAUR is unavailable. Skipping installation. Please try manually later.\e[0m"
fi fi

View File

@ -1,5 +1,12 @@
echo "Migrate AUR packages to official repos where possible" echo "Migrate AUR packages to official repos where possible"
reinstall_package_opr() {
if pacman -Q $1 >/dev/null; then
sudo pacman -Rns --noconfirm $1
sudo pacman -S --noconfirm $1
fi
}
if command -v obsidian >/dev/null; then if command -v obsidian >/dev/null; then
sudo pacman -Rns --noconfirm obsidian-bin sudo pacman -Rns --noconfirm obsidian-bin
sudo pacman -S --noconfirm obsidian sudo pacman -S --noconfirm obsidian
@ -15,7 +22,9 @@ if pacman -Q omarchy-chromium-bin >/dev/null; then
sudo pacman -S --noconfirm omarchy-chromium sudo pacman -S --noconfirm omarchy-chromium
fi fi
if pacman -Q walker-bin >/dev/null; then reinstall_package_opr walker-bin
sudo pacman -Rns --noconfirm walker-bin reinstall_package_opr wl-screenrec
sudo pacman -S --noconfirm walker-bin reinstall_package_opr python-terminaltexteffects
fi reinstall_package_opr tzupdate
reinstall_package_opr typora
reinstall_package_opr ttf-ia-writer