Compare commits
6 Commits
b9eeff19eb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3588e4626c | |||
| 129eca256b | |||
| 72bc8d3321 | |||
| 6ee6450a03 | |||
| 777cd43fc1 | |||
| 6c5a913ab7 |
+10
-33
@@ -7,19 +7,6 @@ if [[ $EUID > 0 ]]; then
|
|||||||
sudo su -
|
sudo su -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source - https://stackoverflow.com/a/29436423
|
|
||||||
# Posted by Tiago Lopo, modified by community. See post 'Timeline' for change history
|
|
||||||
# Retrieved 2026-04-07, License - CC BY-SA 3.0
|
|
||||||
function yes_or_no {
|
|
||||||
while true; do
|
|
||||||
read -p "$* [y/n]: " yn
|
|
||||||
case $yn in
|
|
||||||
[Yy]*) return 0 ;;
|
|
||||||
[Nn]*) echo "Aborted" ; return 1 ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Removing fluff (maps, tour, etc)"
|
echo "Removing fluff (maps, tour, etc)"
|
||||||
dnf remove -y gnome-maps gnome-weather gnome-tour gnome-calendar gnome-contacts simple-scan &> /dev/null
|
dnf remove -y gnome-maps gnome-weather gnome-tour gnome-calendar gnome-contacts simple-scan &> /dev/null
|
||||||
|
|
||||||
@@ -31,16 +18,6 @@ dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-
|
|||||||
# Get the nonfree repository (NVIDIA drivers, some codecs)
|
# Get the nonfree repository (NVIDIA drivers, some codecs)
|
||||||
dnf install -y https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm &> /dev/null
|
dnf install -y https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm &> /dev/null
|
||||||
|
|
||||||
# Installing nushell
|
|
||||||
echo "[gemfury-nushell]
|
|
||||||
name=Gemfury Nushell Repo
|
|
||||||
baseurl=https://yum.fury.io/nushell/
|
|
||||||
enabled=1
|
|
||||||
gpgcheck=0
|
|
||||||
gpgkey=https://yum.fury.io/nushell/gpg.key" | tee /etc/yum.repos.d/fury-nushell.repo
|
|
||||||
dnf install -y nushell &> /dev/null
|
|
||||||
|
|
||||||
|
|
||||||
# Update everything so it all plays nice together
|
# Update everything so it all plays nice together
|
||||||
echo "Updating everything..."
|
echo "Updating everything..."
|
||||||
dnf update --refresh -y &> /dev/null
|
dnf update --refresh -y &> /dev/null
|
||||||
@@ -58,7 +35,7 @@ fwupdmgr refresh --force &> /dev/null
|
|||||||
fwupdmgr get-updates &> /dev/null
|
fwupdmgr get-updates &> /dev/null
|
||||||
|
|
||||||
# Apply them
|
# Apply them
|
||||||
fwupdmgr update &> /dev/null
|
fwupdmgr update -y &> /dev/null
|
||||||
|
|
||||||
###Flathub
|
###Flathub
|
||||||
echo "Fixing flathub"
|
echo "Fixing flathub"
|
||||||
@@ -110,6 +87,9 @@ dnf update -y &> /dev/null
|
|||||||
sed -i "$ a AutoConnect=true" /etc/bluetooth/main.conf
|
sed -i "$ a AutoConnect=true" /etc/bluetooth/main.conf
|
||||||
sed -i "$ a MultiProfile=multiple" /etc/bluetooth/main.conf
|
sed -i "$ a MultiProfile=multiple" /etc/bluetooth/main.conf
|
||||||
|
|
||||||
|
###Adding the update alias
|
||||||
|
echo "Now you can just use the command 'upup' to update everything."
|
||||||
|
"alias upup='sudo dnf update --refresh -y'" >> $HOME/.bashrc
|
||||||
|
|
||||||
###Archive support
|
###Archive support
|
||||||
echo "Installing archive support"
|
echo "Installing archive support"
|
||||||
@@ -153,16 +133,13 @@ systemctl daemon-reload &> /dev/null
|
|||||||
systemctl enable --now flatpak-update.timer &> /dev/null
|
systemctl enable --now flatpak-update.timer &> /dev/null
|
||||||
|
|
||||||
###Bit-perfect audio support
|
###Bit-perfect audio support
|
||||||
|
###This will enable support for the following audio sample rates:
|
||||||
|
###44100, 48000, 88200, 96000, 176400, 192000
|
||||||
|
###Please adjust according to the capabilities of your hardware
|
||||||
|
###or simply delete the file created below if you don't care about resampling
|
||||||
echo "Adding bitperfect audio support"
|
echo "Adding bitperfect audio support"
|
||||||
function bitperfect_audio {
|
mkdir -p $HOME/.config/pipewire/pipewire.conf.d
|
||||||
###This will enable support for the following audio sample rates:
|
curl https://karf.net/Siim/Fedora-post-install-script/raw/branch/main/10-bitperfect.conf > $HOME/.config/pipewire/pipewire.conf.d/10-bitperfect.conf
|
||||||
###44100, 48000, 88200, 96000, 176400, 192000
|
|
||||||
###Please adjust according to the capabilities of your hardware
|
|
||||||
###or simply delete the file created below if you don't care about resampling
|
|
||||||
mkdir -p $HOME/.config/pipewire/pipewire.conf.d
|
|
||||||
curl https://karf.net/Siim/Fedora-post-install-script/raw/branch/main/10-bitperfect.conf > $HOME/.config/pipewire/pipewire.conf.d/10-bitperfect.conf
|
|
||||||
}
|
|
||||||
yes_or_no "Would you like to add support for high-res audio?" && bitperfect_audio ||
|
|
||||||
|
|
||||||
###All done
|
###All done
|
||||||
echo "Script completed, please reboot."
|
echo "Script completed, please reboot."
|
||||||
|
|||||||
Reference in New Issue
Block a user