diff --git a/dotfiles b/dotfiles index 318ca5a..274c0a3 160000 --- a/dotfiles +++ b/dotfiles @@ -1 +1 @@ -Subproject commit 318ca5afddb1cc19477e12eb79ed598d70b7c296 +Subproject commit 274c0a37d3669c18d73ecb5510b7778992cdaa51 diff --git a/install-stuff/install-fonts.bash b/install-stuff/install-fonts.bash new file mode 100755 index 0000000..2210c28 --- /dev/null +++ b/install-stuff/install-fonts.bash @@ -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 diff --git a/install-stuff/install-librewolf.bash b/install-stuff/install-librewolf.bash index 3dc68b1..44c9434 100755 --- a/install-stuff/install-librewolf.bash +++ b/install-stuff/install-librewolf.bash @@ -18,6 +18,20 @@ elif command_exists "dnf"; then sudo dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo sudo dnf install librewolf 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 yay -S librewolf-bin yay -R firefox diff --git a/install-stuff/install-misc.sh b/install-stuff/install-misc.sh index 7a17c6d..675d702 100755 --- a/install-stuff/install-misc.sh +++ b/install-stuff/install-misc.sh @@ -32,9 +32,3 @@ else echo "Unsupported: unknown package manager and distro" exit 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' diff --git a/install-stuff/install-steam.bash b/install-stuff/install-steam.bash index 60fb62a..a86dcc3 100755 --- a/install-stuff/install-steam.bash +++ b/install-stuff/install-steam.bash @@ -15,7 +15,12 @@ elif command_exists "dnf"; then sudo dnf install steam -y sudo dnf install appimagelauncher qt5-qtbase-gui -y 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 elif command_exists "yay"; then #printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'