Skip to content

Instantly share code, notes, and snippets.

@Thermionix
Last active January 19, 2022 09:39
Show Gist options
  • Save Thermionix/d66a4d30c47ab6dfc77ff8c65a36a5ae to your computer and use it in GitHub Desktop.
Save Thermionix/d66a4d30c47ab6dfc77ff8c65a36a5ae to your computer and use it in GitHub Desktop.
Fedora post install script
#!/bin/sh
## fix touchpad rightclick and middle click
gsettings set org.gnome.desktop.peripherals.touchpad click-method 'areas'
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding '<Primary><Alt>t'
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command 'gnome-terminal &'
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name 'Launch Terminal'
# modify grub menu for dual-boot purposes
sudo sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=25/" /etc/default/grub
echo "GRUB_SAVEDEFAULT=true" | sudo tee --append /etc/default/grub
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
sudo dnf -y --refresh upgrade
## add gnome extensions
pip3 install --user gnome-extensions-cli
# [email protected]
gnome-extensions-cli install [email protected]
gnome-extensions-cli install [email protected]
gnome-extensions-cli install [email protected]
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.dash-to-panel location-clock 'STATUSRIGHT'
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.dash-to-panel trans-use-custom-opacity true
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.dash-to-panel trans-panel-opacity 0.3
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.dash-to-panel show-show-apps-button false
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.arc-menu menu-hotkey 'Super_L'
## Update all enabled extensions
# $ gnome-extensions-cli update
# $ gnome-extensions list
gnome-extensions disable [email protected]
## set dark theme
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
## add minimize window button
gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,close'
## adjust screensaver time
gsettings set org.gnome.desktop.session idle-delay 900
## directories in file structure first
gsettings set org.gtk.Settings.FileChooser sort-directories-first true
## show hidden files
gsettings set org.gtk.Settings.FileChooser show-hidden true
## change to list view
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
## fix font antialiasing
gsettings set org.gnome.settings-daemon.plugins.xsettings antialiasing 'rgba'
echo "Xft.lcdfilter: lcddefault" >>"$HOME/.Xresources"
sudo dnf install -y fedora-workstation-repositories
sudo dnf update
sudo dnf install -y steam --enablerepo=rpmfusion-nonfree-steam
# $ sudo dnf install -y akmod-nvidia --enablerepo=rpmfusion-nonfree-nvidia-driver
sudo dnf remove -y cheese totem gnome-photos
## enable rpmfusion repos
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y syncthing vlc thunderbird chromium hexchat torbrowser-launcher gnome-tweaks ffmpeg fuse-exfat youtube-dl gimp inkscape qcad
## TODO : steam-native ? https://copr.fedorainfracloud.org/coprs/axeld/steam-native-runtime/
## TODO : arduino ide
## TODO : winetricks wine
# $ sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/32/winehq.repo
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y flathub com.discordapp.Discord
sudo flatpak install -y flathub org.signal.Signal
# com.spotify.Client
# VS Code
# Jitsi-meet
# $ flatpak run com.discordapp.Discord
# $ sudo flatpak uninstall -y --unused
#### audio
sudo dnf install jack-audio-connection-kit qjackctl
sudo usermod -a -G jackuser `whoami`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment