-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfedora-gnome-setup
More file actions
53 lines (40 loc) · 1.63 KB
/
fedora-gnome-setup
File metadata and controls
53 lines (40 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Designed for Fedora 42 with Gnome
# Set up error handling
set -e
trap 'echo Problem encountered on line $LINENO. Code: $?.' ERR
# Get user input
read -p "What dnf packages should be REMOVED? (space between each) " removeentry
# Example: totem gnome-contacts gnome-calendar gnome-tour
read -p "What dnf packages should be INSTALLED? (space between each) " installentry
# Example: dconf-editor vlc gnome-tweaks chromium fastfetch nvtop htop steam pdftk-java p7zip p7zip-plugins
read -p "How many workspaces do you want? " workspacecount
# update dnf packages
sudo dnf -y update
# Remove unnecessary apps
sudo dnf -y remove $removeentry
# Add desired apps
sudo dnf -y install $installentry
# Set up Python venv for terminal
python -m venv ~/PythonVenvs/bash
echo -e "source ~/PythonVenvs/bash/bin/activate" >> /home/user/.bashrc
# Bluetooth off at startup
echo -e "AutoEnable=false" >> /etc/bluetooth/main.conf
# Set workspace count
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces $workspacecount
# Nvidia GPU driver install
gpu="$(lspci -nn | grep VGA)"
if [[ $gpu == *'NVIDIA'* ]]; then
sudo dnf -y install akmod-nvidia xorg-x11-drv-nvidia-cuda libva-nvidia-driver
else
echo "No Nvidia GPU found. If this is incorrect; install drivers manually."
fi
# Show day in clock
echo ""
echo 'To show day of week in top bar: open dconf editor > org > gnome > desktop > interface > toggle "clock-show-weekday" to "on"'
# Bluetooth off @ startup:
echo ""
echo "To disable bluetooth at startup: put AutoEnable=false in /etc/bluetooth/main.conf "
# extra line for readability
echo ""