-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-with-whitesur-setup.sh
94 lines (65 loc) · 5.76 KB
/
fedora-with-whitesur-setup.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#! /bin/bash
pkexec bash -c "
dnf remove -y adwaita-qt6 adwaita-qt5 totem firefox gnome-calendar epiphany evolution java-17-openjdk java-17-openjdk-devel gnome-shell-extension-window-list gnome-shell-extension-places-menu gnome-shell-extension-background-logo gnome-contacts gnome-weather gnome-maps gnome-photos mediawriter libreoffice-calc libreoffice-writer libreoffice-impress rhythmbox gnome-tour &&
dnf install -y gnome-tweaks timeshift file-roller fragments p7zip-plugins glib2-devel p7zip gnome-shell-extension-appindicator gnome-shell-extension-dash-to-dock gnome-shell-extension-system-monitor gnome-shell-extension-user-theme gnome-shell-extension-caffeine gnome-shell-extension-blur-my-shell la-capitaine-cursor-theme fondo gnome-sound-recorder gparted python make cmake automake autoconf gcc g++ adb java-latest-openjdk-devel procyon-decompiler meld gnupg seahorse wget git seahorse-nautilus gvfs-mtp openssl nodejs npm nautilus-extensions btrfs-progs exfatprogs e2fsprogs f2fs-tools dosfstools mtools hfsutils jfsutils util-linux cryptsetup lvm2 nilfs-utils udftools xfsprogs xfsdump &&
dnf copr enable -y kylegospo/grub-btrfs &&
dnf install -y grub-btrfs-timeshift &&
dnf clean packages &&
dnf autoremove -y &&
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo &&
flatpak remote-modify --enable flathub &&
flatpak remote-modify --disable fedora &&
flatpak mask org.kde.KStyle.Adwaita &&
flatpak install flathub -y org.mozilla.firefox com.github.tchx84.Flatseal com.mattjakeman.ExtensionManager org.videolan.VLC org.onlyoffice.desktopeditors &&
alternatives --set java java-latest-openjdk.x86_64 &&
dnf install -y https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm &&
mkdir -p /usr/local/share/fonts && cd /usr/local/share/fonts &&
git clone https://github.com/sahibjotsaggu/San-Francisco-Pro-Fonts.git &&
git clone https://github.com/supercomputra/SF-Mono-Font.git &&
git clone https://github.com/yell0wsuit/New-York-fonts.git &&
git clone https://github.com/aliifam/BlinkMacSystemFont.git &&
mkdir -p /usr/local/share/fonts/Helvetica && cd /usr/local/share/fonts/Helvetica &&
wget https://laplace.physics.ubc.ca/Doc/rnpletal/Helvetica.ttf.gz && gunzip Helvetica.ttf.gz &&
mkdir -p /usr/local/share/fonts/ComicMono && cd /usr/local/share/fonts/ComicMono &&
wget https://dtinth.github.io/comic-mono-font/ComicMono.ttf &&
echo '[org/gnome/shell]
enabled-extensions=[\"[email protected]\", \"[email protected]\", \"blur-my-shell@aunetx\", \"[email protected]\", \"[email protected]\", \"[email protected]\"]' > /etc/dconf/db/local.d/00-extensions &&
chmod 755 /etc/dconf/db/local.d/00-extensions &&
echo '[org/gnome/desktop/interface]
cursor-theme=\"capitaine-cursors-light\"' > /etc/dconf/db/gdm.d/10-cursor-settings &&
chmod 755 /etc/dconf/db/gdm.d/10-cursor-settings &&
dconf update &&
flatpak override --filesystem=xdg-config/gtk-4.0"
# Use the following commands only for user level settings //
# only when the above root level commands already been executed once to the system.
# But in case of first time usage do not touch any command, execute the whole.
array=( https://extensions.gnome.org/extension/5263/gtk4-desktop-icons-ng-ding/ https://extensions.gnome.org/extension/3740/compiz-alike-magic-lamp-effect/ )
for i in "${array[@]}"
do
EXTENSION_ID=$(curl -s $i | grep -oP 'data-uuid="\K[^"]+')
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=$EXTENSION_ID" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
wget -O ${EXTENSION_ID}.zip "https://extensions.gnome.org/download-extension/${EXTENSION_ID}.shell-extension.zip?version_tag=$VERSION_TAG"
gnome-extensions install --force ${EXTENSION_ID}.zip
if ! gnome-extensions list | grep --quiet ${EXTENSION_ID}; then
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${EXTENSION_ID}
fi
gnome-extensions enable ${EXTENSION_ID}
rm ${EXTENSION_ID}.zip
done
mkdir -p ~/.local/etc && cd ~/.local/etc/ && git clone https://github.com/vinceliuice/WhiteSur-gtk-theme &&
~/.local/etc/WhiteSur-gtk-theme/install.sh -d ~/.local/share/themes -o normal -c Light -t blue -i fedora -l && ~/.local/etc/WhiteSur-gtk-theme/tweaks.sh -F -o normal -c Light -t blue -l
fc-cache -v -f
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
# gsettings set org.gnome.shell enabled-extensions "['[email protected]', '[email protected]', 'blur-my-shell@aunetx', '[email protected]', '[email protected]', '[email protected]']"
gsettings set org.gnome.desktop.interface document-font-name 'BlinkMacSystemFont 16'
gsettings set org.gnome.desktop.interface font-name 'BlinkMacSystemFont Medium 14'
gsettings set org.gnome.desktop.interface monospace-font-name 'Comic Mono 17'
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'BlinkMacSystemFont Semibold 15'
gsettings set org.gnome.desktop.interface cursor-theme 'capitaine-cursors-light'
gsettings set org.gnome.shell.extensions.user-theme name 'WhiteSur-Light-blue'
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'focus-minimize-or-appspread'
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 48
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'do-nothing'
gsettings set org.gnome.shell.extensions.dash-to-dock running-indicator-style 'DOTS'
gsettings set org.gnome.shell.extensions.blur-my-shell.dash-to-dock blur false