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... sudo echo Not yet supported, exiting...
elif command_exists "apk"; then elif command_exists "apk"; then
sudo apk add git sudo apk add git
elif command_exists "xbps-install"; then
sudo xbps-install git
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
if [ $(whoami) == "root" ]; then if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root" echo "Run as a normal user, not root"
exit 1 exit 1
@ -23,8 +22,8 @@ elif command_exists "pacman"; then
cd $WD cd $WD
rm -rf yay rm -rf yay
yay -S noto-fonts-emoji --noconfirm --needed yay -S noto-fonts-emoji --noconfirm --needed
sudo mkdir /usr/share/fonts/meslolgs #sudo mkdir /usr/share/fonts/meslolgs
yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed #yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
elif command_exists "zypp"; then elif command_exists "zypp"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "emerge"; then 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 sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
mkdir ~/Applications mkdir ~/Applications
cd ~/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 - cd -
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script" echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
sudo xbps-install void-repo-multilib void-repo-nonfree
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

View file

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

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

View file

@ -9,8 +9,7 @@ fi
command_exists() { type "$1" &>/dev/null; } command_exists() { type "$1" &>/dev/null; }
if command_exists "yay"; then if command_exists "yay"; then
yay -S claws-mail python-gpgme nuspell aspell aspell-en yay -S claws-mail python-gpgme nuspell aspell aspell-en spamassassin
yay -S spamassassin
sudo systemctl enable --now spamassassin.service sudo systemctl enable --now spamassassin.service
cd ~ cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper 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 elif command_exists "yum"; then
sudo yum install fish -y sudo yum install fish -y
elif command_exists "pacman"; then elif command_exists "pacman"; then
yay -S fish pacman -S fish
elif command_exists "zypp"; then elif command_exists "zypp"; then
# Untested # Untested
sudo zypper install fish -y sudo zypper install fish -y
@ -30,5 +30,3 @@ else
fi fi
chsh -s $(readlink -f $(which fish)) 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 emaint -r librewolf sync
elif command_exists "xbps-install"; then elif command_exists "xbps-install"; then
mkdir librewolf 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 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-rindex -a librewolf-*.x86_64.xbps
sudo xbps-install -R $PWD librewolf 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 copr enable g3tchoo/prismlauncher
sudo dnf install prismlauncher-qt5 sudo dnf install prismlauncher-qt5
elif command_exists "yay"; then 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 elif command_exists "zypp"; then
# Untested # Untested
sudo zypper install kitty -y sudo zypper install kitty -y
@ -30,10 +30,10 @@ elif command_exists "emerge"; then
exit exit
elif command_exists "apk"; then elif command_exists "apk"; then
echo Not yet supported, exiting... echo Not yet supported, exiting...
elif command_exists "xbps-install"; elif command_exists "xbps-install"; then
# missing: hexgl, drawing, clippy, schildichat, genisoimage # missing: hexgl, drawing, clippy, schildichat, genisoimage
# not included: libfreeglut, don't think that's required # 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 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 - 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 - cd -

View file

@ -29,6 +29,7 @@ elif command_exists "apk"; then
elif command_exists "xbps-install"; then elif command_exists "xbps-install"; then
sudo xbps-install qemu libvirt virt-manager sudo xbps-install qemu libvirt virt-manager
sudo usermod -aG libvirt $(whoami) sudo usermod -aG libvirt $(whoami)
sudo ln -s /etc/sv/libvirtd/ /var/service/
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi 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 \") 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 sudo dnf install ./vesktop-*.rpm -y
rm ./vesktop-*.rpm rm ./vesktop-*.rpm
elif command_exists "pacman"; then elif command_exists "yay"; then
yay -S vesktop-bin --noconfirm --needed yay -S vesktop-bin --noconfirm --needed
elif command_exists "xbps-install"; then elif command_exists "xbps-install"; then
cd ~/Applications 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 - cd -
else else
echo "IDK, check the repo: https://github.com/Vencord/Vesktop" echo "IDK, check the repo: https://github.com/Vencord/Vesktop"