fix various things, format scripts

This commit is contained in:
askiiart 2024-04-20 20:35:22 -05:00
parent f5f010edd6
commit 2650eff42d
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
11 changed files with 19 additions and 16 deletions

View file

@ -28,6 +28,8 @@ elif command_exists "emerge"; then
sudo echo Not yet supported, exiting...
elif command_exists "apk"; then
sudo apk add git
elif command_exists "xbps-install"; then
sudo xbps-install git
else
echo "Unsupported: unknown package manager and distro"
fi

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -e
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
@ -23,8 +22,8 @@ elif command_exists "pacman"; then
cd $WD
rm -rf yay
yay -S noto-fonts-emoji --noconfirm --needed
sudo mkdir /usr/share/fonts/meslolgs
yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
#sudo mkdir /usr/share/fonts/meslolgs
#yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
elif command_exists "zypp"; then
echo "not yet implemented"
elif command_exists "emerge"; then
@ -35,9 +34,11 @@ elif command_exists "xbps-install"; then
sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
mkdir ~/Applications
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/TheAssassin/AppImageLauncher/releases/latest | grep "browser_download_url.*appimagelauncher_.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
curl -LO $(curl -s https://api.github.com/repos/TheAssassin/AppImageLauncher/releases/latest | grep "browser_download_url.*appimagelauncher-lite.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
chmod +x appimagelauncher-lite*-x86_64.AppImage
cd -
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
sudo xbps-install void-repo-multilib void-repo-nonfree
else
echo "Unsupported: unknown package manager and distro"
fi

View file

@ -19,6 +19,7 @@ chmod 700 ./*.bash
./install-steam.bash
./install-vs-code.bash
./install-yt-music.bash
./install-fonts.bash
cd ..
cd ./dotfiles

@ -1 +1 @@
Subproject commit 4bbfa111d57c72dffdac872278e4ac4bc6c6603d
Subproject commit ab891546112053b37bf2cacc682b9480d7670d0d

View file

@ -9,8 +9,7 @@ fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "yay"; then
yay -S claws-mail python-gpgme nuspell aspell aspell-en
yay -S spamassassin
yay -S claws-mail python-gpgme nuspell aspell aspell-en spamassassin
sudo systemctl enable --now spamassassin.service
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper

View file

@ -13,7 +13,7 @@ if command_exists "apt-get"; then
elif command_exists "yum"; then
sudo yum install fish -y
elif command_exists "pacman"; then
yay -S fish
pacman -S fish
elif command_exists "zypp"; then
# Untested
sudo zypper install fish -y
@ -30,5 +30,3 @@ else
fi
chsh -s $(readlink -f $(which fish))
fish -c "tide configure --auto --style=Classic --prompt_colors='True color' --classic_prompt_color=Dark --show_time='24-hour format' --classic_prompt_separators=Vertical --powerline_prompt_heads=Sharp --powerline_prompt_tails=Flat --powerline_prompt_style='One line' --prompt_spacing=Compact --icons='Many icons' --transient=No"

View file

@ -41,6 +41,7 @@ elif command_exists "emerge"; then
emaint -r librewolf sync
elif command_exists "xbps-install"; then
mkdir librewolf
cd librewolf
curl $(curl -s https://api.github.com/repos/index-0/librewolf-void/releases/latest | grep "browser_download_url.*librewolf-.*.x86_64.xbps" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -LO
sudo xbps-rindex -a librewolf-*.x86_64.xbps
sudo xbps-install -R $PWD librewolf

View file

@ -20,7 +20,7 @@ elif command_exists "dnf"; then
sudo dnf copr enable g3tchoo/prismlauncher
sudo dnf install prismlauncher-qt5
elif command_exists "yay"; then
yay -S kitty schildichat-desktop-bin digikam man-db neovim prismlauncher-qt5-bin progress --noconfirm --needed
yay -S kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp genisoimage drawing clippy gnome-hexgl zstd iperf3 unzip schildichat-desktop-bin digikam man-db prismlauncher-qt5-bin progress --noconfirm --needed
elif command_exists "zypp"; then
# Untested
sudo zypper install kitty -y
@ -30,10 +30,10 @@ elif command_exists "emerge"; then
exit
elif command_exists "apk"; then
echo Not yet supported, exiting...
elif command_exists "xbps-install";
elif command_exists "xbps-install"; then
# missing: hexgl, drawing, clippy, schildichat, genisoimage
# not included: libfreeglut, don't think that's required
sudo xbps-install kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp zstd iperf3
sudo xbps-install kitty neovim gcc vlc ncdu gcolor3 rustup p7zip mosh krita podman podman-compose gajim progress yt-dlp zstd iperf3 unzip
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/SchildiChat/schildichat-desktop/releases/latest | grep "browser_download_url.*SchildiChat-.*.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd -

View file

@ -29,6 +29,7 @@ elif command_exists "apk"; then
elif command_exists "xbps-install"; then
sudo xbps-install qemu libvirt virt-manager
sudo usermod -aG libvirt $(whoami)
sudo ln -s /etc/sv/libvirtd/ /var/service/
else
echo "Unsupported: unknown package manager and distro"
fi

View file

@ -14,11 +14,11 @@ elif command_exists "yum"; then
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*vesktop-.*.x86_64.rpm" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
sudo dnf install ./vesktop-*.rpm -y
rm ./vesktop-*.rpm
elif command_exists "pacman"; then
elif command_exists "yay"; then
yay -S vesktop-bin --noconfirm --needed
elif command_exists "xbps-install"; then
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*Vesktop-.*.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \")
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*Vesktop-.*.AppImage" | tail --lines 1 | cut -d : -f 2,3 | tr -d \")
cd -
else
echo "IDK, check the repo: https://github.com/Vencord/Vesktop"