-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnome.sh
executable file
·133 lines (108 loc) · 4.47 KB
/
gnome.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
cd ~
echo "Installation of GNOME Apps"
sudo dnf5 remove -y \
gnome-terminal \
rhythmbox \
gnome-system-monitor
sudo dnf5 install -y \
gnome-tweaks \
seahorse \
gnome-console \
gnome-backgrounds-extras
FLATPAK_FLATHUB=( com.github.tchx84.Flatseal
com.mattjakeman.ExtensionManager
io.github.realmazharhussain.GdmSettings
io.bassi.Amberol
com.github.huluti.Curtail
com.belmoussaoui.Decoder
com.adrienplazas.Metronome
se.sjoerd.Graphs
org.gnome.SoundRecorder
org.gnome.Solanum
com.github.liferooter.textpieces
com.github.finefindus.eyedropper
app.drey.Dialect
com.github.maoschanz.drawing
ca.desrt.dconf-editor
org.nickvision.tubeconverter
org.gnome.Firmware
io.gitlab.adhami3310.Impression
de.philippun1.turtle
de.philippun1.Snoop
net.nokyan.Resources
com.github.wwmm.easyeffects
io.gitlab.adhami3310.Converter
de.haeckerfelix.Fragments
com.belmoussaoui.Obfuscate )
for app in ${FLATPAK_FLATHUB[@]}; do
flatpak install -y flathub "$app"
done
echo "Install nautilus extensions"
sudo dnf5 install -y nautilus-extensions python-requests nautilus-python python3-gobject
cd ~/Repositories
git clone https://gitlab.gnome.org/philippun1/turtle.git
cd turtle
sudo python install.py install --flatpak
cd ..
sudo rm -rf turtle
git clone https://gitlab.gnome.org/philippun1/snoop.git
sudo cp snoop/extension/snoop.py /usr/share/nautilus-python/extensions
cd ..
sudo rm -rf snoop
git clone https://github.com/ronen25/nautilus-copypath
sudo cp nautilus-copypath/nautilus-copypath.py /usr/share/nautilus-python/extensions/
cd ~
echo "Fix inconsistent GNOME theming"
sudo dnf5 install -y adw-gtk3-theme
flatpak install -y flathub org.gtk.Gtk3theme.adw-gtk3 org.gtk.Gtk3theme.adw-gtk3-dark
echo "Install shell extensions"
gsettings set org.gnome.shell disable-extension-version-validation true
array=( https://extensions.gnome.org/extension/3193/blur-my-shell/ https://extensions.gnome.org/extension/517/caffeine/ https://extensions.gnome.org/extension/4998/legacy-gtk3-theme-scheme-auto-switcher/ https://extensions.gnome.org/extension/4481/forge/ )
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
gnome-extensions disable [email protected]
echo "Fractional scaling"
gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
echo "Set theme settings"
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.desktop.interface clock-format 12h
gsettings set org.gnome.desktop.interface document-font-name 'Inter 11'
gsettings set org.gnome.desktop.interface font-name 'Inter 11'
gsettings set org.gnome.desktop.interface monospace-font-name 'IBM Plex Mono 11'
gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3'
gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close'
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
gsettings set org.gnome.shell had-bluetooth-devices-setup true
gsettings set org.gnome.software packaging-format-preference "['flatpak:flathub', 'rpm', 'flatpak:fedora-testing', 'flatpak:fedora']"
gsettings set org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application/org-freedesktop-problems-applet/ enable false
echo "Install morewaita"
cd ~/Repositories
git clone https://github.com/somepaulo/MoreWaita
cd ./MoreWaita
sudo ./install.sh
gsettings set org.gnome.desktop.interface icon-theme 'MoreWaita'
echo "Install firefox and thunderbird theme"
cd ~/Repositories
git clone https://github.com/rafaelmardojai/firefox-gnome-theme
cd firefox-gnome-theme
./scripts/auto-install.sh
if [ "$arch" == "x86_64" ]
then
cd ~/Repositories
git clone https://github.com/rafaelmardojai/thunderbird-gnome-theme
cd thunderbird-gnome-theme
./scripts/auto-install.sh
fi
cd ~