Add fonts, fix protonup-qt on fedora

This commit is contained in:
askiiart 2024-03-22 13:03:26 -05:00
parent 8cb779310c
commit 2b9c0a8d6c
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
5 changed files with 40 additions and 8 deletions

@ -1 +1 @@
Subproject commit 318ca5afddb1cc19477e12eb79ed598d70b7c296 Subproject commit 274c0a37d3669c18d73ecb5510b7778992cdaa51

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
sudo mkdir /usr/share/fonts/firacode
mkdir ./tmp-fonts
cd ./tmp-fonts
curl $(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep "browser_download_url.*FiraCode.zip" | cut -d : -f 2,3 | tr -d \") -LO
unzip FiraCode.zip
sudo mv FiraCodeNerdFont*.ttf /usr/share/fonts/firacode/
sudo mkdir /usr/share/fonts/atkinson-hyperlegible
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Regular.ttf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Bold.ttf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-Italic.ttf
curl -LO https://raw.githubusercontent.com/googlefonts/atkinson-hyperlegible/main/fonts/ttf/AtkinsonHyperlegible-BoldItalic.ttf
sudo mv AtkinsonHyperlegible*.ttf /usr/share/fonts/atkinson-hyperlegible/
cd -
rm -rf ./tmp-fonts

View file

@ -18,6 +18,20 @@ elif command_exists "dnf"; then
sudo dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo sudo dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo
sudo dnf install librewolf sudo dnf install librewolf
sudo dnf remove firefox sudo dnf remove firefox
mkdir tmp-openh264
cd tmp-openh264
wget http://ciscobinary.openh264.org/openh264-linux64-v1.1-Firefox33.zip
sudo dnf install unzip -y
unzip ./*.zip
for dir in $(ls -d ~/.librewolf/*/); do
mkdir -p ${dir}gmp-gmpopenh264/1.1/
cp libgmpopenh264.so ${dir}gmp-gmpopenh264/1.1/
cp gmpopenh264.info ${dir}gmp-gmpopenh264/1.1/
done
cd -
rm -rf ./tmp-openh264/
echo -e "\nNow open LibreWolf, go to about:config, and set these to true:\n media.gmp-gmpopenh264.autoupdate\n media.gmp-gmpopenh264.enabled\n media.gmp-gmpopenh264.provider.enabled\n media.peerconnection.video.h264_enabled\n"
read -p ""
elif command_exists "yay"; then elif command_exists "yay"; then
yay -S librewolf-bin yay -S librewolf-bin
yay -R firefox yay -R firefox

View file

@ -32,9 +32,3 @@ else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
exit exit
fi fi
sudo mkdir /usr/share/fonts/meslolgs
sudo curl 'https://raw.githubusercontent.com/IlanCosman/tide/assets/fonts/mesloLGS_NF_regular.ttf' -o '/usr/share/fonts/meslolgs/mesloLGS_NF_regular.ttf'
sudo curl 'https://raw.githubusercontent.com/IlanCosman/tide/assets/fonts/mesloLGS_NF_bold.ttf?raw=true' -o '/usr/share/fonts/meslolgs/mesloLGS_NF_bold.ttf'
sudo curl 'https://raw.githubusercontent.com/IlanCosman/tide/assets/fonts/mesloLGS_NF_italic.ttf?raw=true' -o '/usr/share/fonts/meslolgs/mesloLGS_NF_italic.ttf'
sudo curl 'https://raw.githubusercontent.com/IlanCosman/tide/assets/fonts/mesloLGS_NF_bold_italic.ttf?raw=true' -o '/usr/share/fonts/meslolgs/mesloLGS_NF_bold_italic.ttf'

View file

@ -15,7 +15,12 @@ elif command_exists "dnf"; then
sudo dnf install steam -y sudo dnf install steam -y
sudo dnf install appimagelauncher qt5-qtbase-gui -y sudo dnf install appimagelauncher qt5-qtbase-gui -y
mkdir $HOME/Applications mkdir $HOME/Applications
curl -L $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -o $HOME/Applications/ProtonUp-Qt.AppImage cd $HOME/Applications
curl -LO $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -C -
cd - # throws an error but it works?
AppImageLauncherSettings &
sleep 5
kill $(pidof AppImageLauncherSettings)
sudo dnf install gperftools-libs-2.9.1-6.fc39.i686 sudo dnf install gperftools-libs-2.9.1-6.fc39.i686
elif command_exists "yay"; then elif command_exists "yay"; then
#printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' #printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'